summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/c_std/bits/std_cmath.h
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-06 19:14:27 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-06 19:14:27 +0000
commit27b76aa38d0f6831bc97a2935baaabdf359553cc (patch)
tree39f0bff0a063a16d6328a164304df8c158fb79a9 /libstdc++-v3/include/c_std/bits/std_cmath.h
parent5e0dda57b72b6bfa717418998e2b68022104c0b0 (diff)
downloadppe42-gcc-27b76aa38d0f6831bc97a2935baaabdf359553cc.tar.gz
ppe42-gcc-27b76aa38d0f6831bc97a2935baaabdf359553cc.zip
* include/c_std/bits/std_cmath.h: Get rid of C99 math macros.
* testsuite/26_numerics/c99_macros.cc: Add test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41159 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/c_std/bits/std_cmath.h')
-rw-r--r--libstdc++-v3/include/c_std/bits/std_cmath.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/libstdc++-v3/include/c_std/bits/std_cmath.h b/libstdc++-v3/include/c_std/bits/std_cmath.h
index acddb33f28e..db3e47f6f20 100644
--- a/libstdc++-v3/include/c_std/bits/std_cmath.h
+++ b/libstdc++-v3/include/c_std/bits/std_cmath.h
@@ -67,6 +67,24 @@
#undef tan
#undef tanh
+// These are possible macros imported from C99-land. They tend to break
+// well-formed C++ programs. Just pretend we don't know about them.
+// At some point, we should provide extensions in std:: -- Gaby
+
+#undef fpclassify
+#undef isfinite
+#undef isinf
+#undef isnan
+#undef isnormal
+#undef signbit
+
+#undef isgreater
+#undef isgreaterequal
+#undef isless
+#undef islessequal
+#undef islessgreater
+#undef isunordered
+
namespace std
{
// Forward declaration of a helper function. This really should be
OpenPOWER on IntegriCloud