summaryrefslogtreecommitdiff
path: root/lib/isnanf-nolibm.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-10-20 15:22:21 +0200
committerJörg Frings-Fürst <debian@jff.email>2024-10-20 15:22:21 +0200
commit1d8b9e17ea13630aec475484da09ebba0366f7c8 (patch)
tree0c801f68561bfb0930a4ade80d7ca3a7940887ab /lib/isnanf-nolibm.h
parent84e26c587987e8484d55db4165f188b40c09e94b (diff)
parent630f99f29bd31a76d8d24da2975a045452c763ef (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'lib/isnanf-nolibm.h')
-rw-r--r--lib/isnanf-nolibm.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/isnanf-nolibm.h b/lib/isnanf-nolibm.h
index 520b8147..d004bbe8 100644
--- a/lib/isnanf-nolibm.h
+++ b/lib/isnanf-nolibm.h
@@ -35,12 +35,23 @@
# if defined __sgi
/* We can't include <ieeefp.h>, because it conflicts with our definition of
isnand. Therefore declare isnanf separately. */
-extern int isnanf (float x);
+extern
+# ifdef __cplusplus
+"C"
+# endif
+int isnanf (float x);
# endif
# endif
#else
/* Test whether X is a NaN. */
# undef isnanf
# define isnanf rpl_isnanf
-extern int isnanf (float x);
+extern
+# ifdef __cplusplus
+"C"
+# endif
+int isnanf (float x);
#endif
+
+/* Tell <math.h> that our isnanf does not need libm. */
+#define HAVE_ISNANF_NOLIBM 1