From c0da27f37df2fcfd59c6cd234793ed24705f1997 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 27 Aug 2024 13:15:38 -0400 Subject: [PATCH] libstdc++: avoid __GLIBCXX__ redefinition testsuite/lib/dg-options.exp defines __GLIBCXX__ to 9999999; avoid a macro redefinition warning in that case. libstdc++-v3/ChangeLog: * include/bits/c++config: Avoid redefining __GLIBCXX__. --- libstdc++-v3/include/bits/c++config | 1 + 1 file changed, 1 insertion(+) diff --git a/libstdc++-v3/include/bits/c++config b/libstdc++-v3/include/bits/c++config index 0f0cc7cd659..54d455be226 100644 --- a/libstdc++-v3/include/bits/c++config +++ b/libstdc++-v3/include/bits/c++config @@ -36,6 +36,7 @@ #define _GLIBCXX_RELEASE // The datestamp of the C++ library in compressed ISO date format. +#undef __GLIBCXX__ /* The testsuite defines it to 99999999 to block PCH. */ #define __GLIBCXX__ // Macros for various attributes. -- 2.47.3