summaryrefslogtreecommitdiffstats
path: root/libcxx/include/__config
diff options
context:
space:
mode:
authorLogan Chien <tzuhsiang.chien@gmail.com>2013-12-14 06:44:09 +0000
committerLogan Chien <tzuhsiang.chien@gmail.com>2013-12-14 06:44:09 +0000
commitca83921ddc4f80f2248638599df50a41fbfb1e08 (patch)
tree78488bb4fc170516ba97a58d63a63938b878b517 /libcxx/include/__config
parent456f047546cf9dfa819920f4609cfc24fff2e615 (diff)
downloadbcm5719-llvm-ca83921ddc4f80f2248638599df50a41fbfb1e08.tar.gz
bcm5719-llvm-ca83921ddc4f80f2248638599df50a41fbfb1e08.zip
GCC does not support strong enum in pre-C++0x mode.
GCC does not support strong enum if -std=c++0x is not used. Without the strong enum, we will see following error: In file included from libcxx/include/ostream:131:0, from libcxx/include/sstream:174, from libcxx/include/complex:247, from cpp03-headers.cpp:11: libcxx/include/ios:419:68: error: 'io_errc' is not a class or namespace libcxx/include/ios:420:66: error: 'io_errc' is not a class or namespace To workaround this issue, this commit will define _LIBCPP_HAS_NO_STRONG_ENUMS when we are compiling with g++ without c++0x. llvm-svn: 197313
Diffstat (limited to 'libcxx/include/__config')
-rw-r--r--libcxx/include/__config1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/include/__config b/libcxx/include/__config
index 36e3222e9ce..ac97d5be716 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -374,6 +374,7 @@ namespace std {
#define _LIBCPP_HAS_NO_VARIADICS
#define _LIBCPP_HAS_NO_RVALUE_REFERENCES
#define _LIBCPP_HAS_NO_ALWAYS_INLINE_VARIADICS
+#define _LIBCPP_HAS_NO_STRONG_ENUMS
#else // __GXX_EXPERIMENTAL_CXX0X__
OpenPOWER on IntegriCloud