Check for isinff
The GNU C library has a C99 `isinf()` variant for single precision
floating point values. If you try feeding a float to `isinf()`, the
check will fail, so if `isinff()` is available we need to use it.
@@ -171,6 +171,15 @@ conf.set('HAVE_SINCOSF',
description: 'Define if sincosf() is available',
)
+conf.set('HAVE_ISINFF',
+ cc.has_function('isinff',
+ prefix: '#include <math.h>',
+ args: [ '-D_GNU_SOURCE' ],
+ dependencies: mathlib,
+ ),
+ description: 'Define is isinff() is available',
+)
+
# Debugging
debug_flags = []
buildtype = get_option('buildtype')
