Patchwork _GLIBCXX_END_NAMESPACE_* invalid closure order

login
register
mail settings
Submitter François Dumont
Date July 30, 2012, 7:16 p.m.
Message ID <5016DD90.6050704@gmail.com>
Download mbox | patch
Permalink /patch/174077/
State New
Headers show

Comments

François Dumont - July 30, 2012, 7:16 p.m.
Even if it doesn't make any difference after preprocessing the 
attached patch fix the closure order in definition of 
_GLIBCXX_END_NAMESPACE_* macros.

2012-07-30  François Dumont <fdumont@gcc.gnu.org>

     * include/bits/c++config (_GLIBCXX_END_NAMESPACE_CONTAINER): Fix
     order of closures.
     (_GLIBCXX_END_NAMESPACE_ALGO): Likewise.

Ok for trunk ?

François
Jonathan Wakely - July 30, 2012, 7:35 p.m.
On 30 July 2012 20:16, François Dumont wrote:
> Ok for trunk ?

OK, thanks.

Patch

Index: include/bits/c++config
===================================================================
--- include/bits/c++config	(revision 189936)
+++ include/bits/c++config	(working copy)
@@ -287,7 +287,7 @@ 
 # define _GLIBCXX_BEGIN_NAMESPACE_CONTAINER \
 	 namespace _GLIBCXX_STD_C { _GLIBCXX_BEGIN_NAMESPACE_VERSION
 # define _GLIBCXX_END_NAMESPACE_CONTAINER \
-	 } _GLIBCXX_END_NAMESPACE_VERSION
+	 _GLIBCXX_END_NAMESPACE_VERSION }
 # undef _GLIBCXX_EXTERN_TEMPLATE
 # define _GLIBCXX_EXTERN_TEMPLATE -1
 #endif
@@ -297,7 +297,7 @@ 
 # define _GLIBCXX_BEGIN_NAMESPACE_ALGO \
 	 namespace _GLIBCXX_STD_A { _GLIBCXX_BEGIN_NAMESPACE_VERSION
 # define _GLIBCXX_END_NAMESPACE_ALGO \
-	 } _GLIBCXX_END_NAMESPACE_VERSION
+	 _GLIBCXX_END_NAMESPACE_VERSION }
 #endif
 
 #ifndef _GLIBCXX_STD_A