summaryrefslogtreecommitdiff
path: root/lib/isnanf-nolibm.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2025-03-22 18:00:25 +0100
committerJörg Frings-Fürst <debian@jff.email>2025-03-22 18:00:25 +0100
commit0737819efdd0bae112d16d874cac7e747e43cd08 (patch)
tree98a9ac84f7f347ae530c14852c68870682f3d04c /lib/isnanf-nolibm.h
parent163a663518f33bab48b28431972e580b366b4d49 (diff)
parente670957a8693f860cf7d77fed4ce6b4b056a8083 (diff)
Merge branch 'release/debian/1.3-1'debian/1.3-1
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