summaryrefslogtreecommitdiffstats
path: root/floattypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'floattypes.h')
-rw-r--r--floattypes.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/floattypes.h b/floattypes.h
index c7b55df..9c43a31 100644
--- a/floattypes.h
+++ b/floattypes.h
@@ -47,6 +47,21 @@ namespace std {
// Make some math functions from math.h available in std
namespace std {
// Capture macros into functions, then undefine the macros
+#ifndef isfinite
+# error "isfinite is not a macro"
+#endif
+#ifndef isinf
+# error "isinf is not a macro"
+#endif
+#ifndef isnan
+# error "isnan is not a macro"
+#endif
+#ifndef isnormal
+# error "isnormal is not a macro"
+#endif
+#ifndef signbit
+# error "signbit is not a macro"
+#endif
namespace {
template<typename T> int libc_isfinite(T x) { return isfinite(x); }
template<typename T> int libc_isinf(T x) { return isinf(x); }
OpenPOWER on IntegriCloud