OSDN Git Service

* include/c_std/std_cmath.h (C99 FP capture): Only undefine said
authorljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Apr 2003 06:58:42 +0000 (06:58 +0000)
committerljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Apr 2003 06:58:42 +0000 (06:58 +0000)
C99 FP macros, if actually captured.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65777 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/c_std/std_cmath.h

index ad9db7c..0237c4a 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-18  Loren J. Rittle  <ljrittle@acm.org>
+
+       * include/c_std/std_cmath.h (C99 FP capture): Only undefine said
+       C99 FP macros, if actually captured.
+
 2003-04-17  Benjamin Kosnik  <bkoz@redhat.com>
 
        PR libstdc++/9555
index 1264c4d..c9a88cf 100644 (file)
@@ -646,10 +646,9 @@ namespace __gnu_cxx
      int 
      __capture_isunordered(_Tp __f1, _Tp __f2) 
      { return isunordered(__f1, __f2); }
-} 
-#endif /* _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC */
-#endif
+}
 
+// Only undefine the C99 FP macros, if actually captured for namespace movement
 #undef fpclassify
 #undef isfinite
 #undef isinf
@@ -662,6 +661,8 @@ namespace __gnu_cxx
 #undef islessequal
 #undef islessgreater
 #undef isunordered
+#endif /* _GLIBCPP_USE_C99_FP_MACROS_DYNAMIC */
+#endif
 
 #if _GLIBCPP_USE_C99
 #if !_GLIBCPP_USE_C99_FP_MACROS_DYNAMIC