summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-05 23:16:16 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-05 23:16:16 +0000
commit1223baf20c65099ecb9a8cb2c08bf6b1df64bb20 (patch)
treee8ffc506821f55aa152e6a11bb3f4c824f9d1a68 /libstdc++-v3
parentee0e3a556eb26e5a824078427feceafcb7acfce5 (diff)
downloadgcc-1223baf20c65099ecb9a8cb2c08bf6b1df64bb20.tar.gz
2011-12-05 Paolo Carlini <paolo.carlini@oracle.com>
* libsupc++/initializer_list: Do not declare anything if __GXX_EXPERIMENTAL_CXX0X__ is not defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182031 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/libsupc++/initializer_list5
2 files changed, 9 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 7b66e6a178d..ca01b90bd87 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 0e2c58a43ae..6b991b7d663 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