summaryrefslogtreecommitdiffstats
path: root/floattypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'floattypes.h')
-rw-r--r--floattypes.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/floattypes.h b/floattypes.h
index 78f0d8b..c7b55df 100644
--- a/floattypes.h
+++ b/floattypes.h
@@ -5,18 +5,22 @@
-#include <cmath>
#include <cstdlib>
// We expect either 199711L or 201103L
#if __cplusplus >= 201103L
// C++11 is supported, use it
+#include <cmath>
#include <cstdint>
#else
// C++11 is not supported, work around the missing pieces
+// <cmath> does not work witha all compilers; e.g. IBM's xlC on a Blue
+// Gene/Q then does not provide macros for isnan, but provides
+// functions instead.
+#include <math.h>
#include <stdint.h>
OpenPOWER on IntegriCloud