summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2013-07-15 14:57:19 +0000
committerMarshall Clow <mclow.lists@gmail.com>2013-07-15 14:57:19 +0000
commitf20d2672e2eb95c21f46b4a18446b4a40dddc092 (patch)
treee8d7ff5d0c2f9fd9ffb50f3c9a2ba3641d4bb4da /libcxx
parentfa21c0724cb96f4893cf90050da5715a49b98754 (diff)
downloadbcm5719-llvm-f20d2672e2eb95c21f46b4a18446b4a40dddc092.tar.gz
bcm5719-llvm-f20d2672e2eb95c21f46b4a18446b4a40dddc092.zip
Add macro _LIBCPP_CONSTEXPR_AFTER_CXX11 for functions that have been marked constexpr post C++11
llvm-svn: 186323
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/include/__config7
1 files changed, 7 insertions, 0 deletions
diff --git a/libcxx/include/__config b/libcxx/include/__config
index ca850d39bfb..f003e5b0e41 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -518,6 +518,13 @@ template <unsigned> struct __static_assert_check {};
# endif
#endif // _LIBCPP_STD_VER
+#if _LIBCPP_STD_VER <= 11
+#define _LIBCPP_CONSTEXPR_AFTER_CXX11
+#else
+#define _LIBCPP_CONSTEXPR_AFTER_CXX11 constexpr
+#endif
+
+
#ifdef _LIBCPP_DEBUG2
# include <__debug>
#else
OpenPOWER on IntegriCloud