summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/c_std/bits/std_cmath.h
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-05 22:27:40 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-05 22:27:40 +0000
commit8baaf04486f86921db0dad2b105048644146e1c1 (patch)
tree506cf754bfc0c9e06af629e09ac8c2ea5c3cc615 /libstdc++-v3/include/c_std/bits/std_cmath.h
parent6e11a41e93e8b48b60e105f0eb5eb5790456401d (diff)
downloadppe42-gcc-8baaf04486f86921db0dad2b105048644146e1c1.tar.gz
ppe42-gcc-8baaf04486f86921db0dad2b105048644146e1c1.zip
2001-02-05 Benjamin Kosnik <bkoz@redhat.com>
* include/c_std/bits/std_cerrno.h: Correct date format for copyright. * include/c_std/bits/std_cctype.h: Same. * include/c_std/bits/std_cassert.h: Same. * include/c_std/bits/std_cstdarg.h: Same. * include/c_std/bits/std_cstddef.h: Same. * include/c_std/bits/std_cstdio.h: Undefine all names brought into namespace std. * include/c_std/bits/std_ctime.h: Same. * include/c_std/bits/std_clocale.h: Same. * include/c_std/bits/std_cmath.h: Same. * include/c_std/bits/std_csetjmp.h: Same. * include/c_std/bits/std_csignal.h: Same. * include/c_std/bits/std_cstring.h: Same. * include/c_std/bits/std_cstdlib.h: Same. * include/c_std/bits/std_cwchar.h: Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39468 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.h29
1 files changed, 26 insertions, 3 deletions
diff --git a/libstdc++-v3/include/c_std/bits/std_cmath.h b/libstdc++-v3/include/c_std/bits/std_cmath.h
index 01cf652548d..3648b20a5c6 100644
--- a/libstdc++-v3/include/c_std/bits/std_cmath.h
+++ b/libstdc++-v3/include/c_std/bits/std_cmath.h
@@ -1,6 +1,6 @@
// -*- C++ -*- C math library.
-// Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+// Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -42,6 +42,31 @@
#pragma GCC system_header
#include <math.h>
+// Get rid of those macros defined in <math.h> in lieu of real functions.
+#undef abs
+#undef div
+#undef acos
+#undef asin
+#undef atan
+#undef atan2
+#undef ceil
+#undef cos
+#undef cosh
+#undef exp
+#undef fabs
+#undef floor
+#undef fmod
+#undef frexp
+#undef ldexp
+#undef log
+#undef log10
+#undef modf
+#undef pow
+#undef sin
+#undef sinh
+#undef tan
+#undef tanh
+
namespace std
{
// Forward declaration of a helper function. This really should be
@@ -580,8 +605,6 @@ namespace std
inline long double
tanh(long double __x) { return ::tanh(static_cast<double>(__x)); }
#endif
-
-
} // std
#ifdef _GLIBCPP_NO_TEMPLATE_EXPORT
OpenPOWER on IntegriCloud