[Bug libstdc++/69350] Don't define the C99 <math.h> functions in -std=c++98 mode
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 5 00:36:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69350
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The simplest solution might be something like:
--- a/libstdc++-v3/include/c_global/cmath
+++ b/libstdc++-v3/include/c_global/cmath
@@ -840,7 +840,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
return __builtin_isunordered(__type(__x), __type(__y));
}
-#else
+#elif !defined(__STRICT_ANSI__)
template<typename _Tp>
inline typename __gnu_cxx::__enable_if<__is_arithmetic<_Tp>::__value,
More information about the Gcc-bugs
mailing list