diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2011-12-05 23:16:16 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2011-12-05 23:16:16 +0000 |
commit | 8972079e90841641d22949566f543519d1a23590 (patch) | |
tree | e8ffc506821f55aa152e6a11bb3f4c824f9d1a68 | |
parent | be4d41449dc39ace63780928cc988b40fea19528 (diff) | |
download | gcc-8972079e90841641d22949566f543519d1a23590.zip gcc-8972079e90841641d22949566f543519d1a23590.tar.gz gcc-8972079e90841641d22949566f543519d1a23590.tar.bz2 |
initializer_list: Do not declare anything if __GXX_EXPERIMENTAL_CXX0X__ is not defined.
2011-12-05 Paolo Carlini <paolo.carlini@oracle.com>
* libsupc++/initializer_list: Do not declare anything if
__GXX_EXPERIMENTAL_CXX0X__ is not defined.
From-SVN: r182031
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/libsupc++/initializer_list | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 7b66e6a..ca01b90 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2011-12-05 Paolo Carlini <paolo.carlini@oracle.com> + + * libsupc++/initializer_list: Do not declare anything if + __GXX_EXPERIMENTAL_CXX0X__ is not defined. + 2011-12-04 Jonathan Wakely <jwakely.gcc@gmail.com> * include/std/type_traits: Doxygen improvements. diff --git a/libstdc++-v3/libsupc++/initializer_list b/libstdc++-v3/libsupc++/initializer_list index 0e2c58a..6b991b7 100644 --- a/libstdc++-v3/libsupc++/initializer_list +++ b/libstdc++-v3/libsupc++/initializer_list @@ -34,7 +34,7 @@ #ifndef __GXX_EXPERIMENTAL_CXX0X__ # include <bits/c++0x_warning.h> -#endif // C++0x +#else // C++0x #pragma GCC visibility push(default) @@ -101,4 +101,7 @@ namespace std } #pragma GCC visibility pop + +#endif // __GXX_EXPERIMENTAL_CXX0X__ + #endif // _INITIALIZER_LIST |