summaryrefslogtreecommitdiff
path: root/lib/isnand-nolibm.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-10-20 15:21:43 +0200
committerJörg Frings-Fürst <debian@jff.email>2024-10-20 15:21:43 +0200
commit4682deeb62247d34de87f8e777f99e2d337fd377 (patch)
tree5bd5b5605b5f3a4b3c8ea7468c34c23094afdef4 /lib/isnand-nolibm.h
parent00893e79fc62966067af1a106567db96bd170338 (diff)
New upstream version 1.3upstream/1.3upstream
Diffstat (limited to 'lib/isnand-nolibm.h')
-rw-r--r--lib/isnand-nolibm.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/isnand-nolibm.h b/lib/isnand-nolibm.h
index 4d8b0e8f..1a0f27b4 100644
--- a/lib/isnand-nolibm.h
+++ b/lib/isnand-nolibm.h
@@ -34,5 +34,12 @@
/* Test whether X is a NaN. */
# undef isnand
# define isnand rpl_isnand
-extern int isnand (double x);
+extern
+# ifdef __cplusplus
+"C"
+# endif
+int isnand (double x);
#endif
+
+/* Tell <math.h> that our isnand does not need libm. */
+#define HAVE_ISNAND_NOLIBM 1