wrap _LIBCPP_HAS_NO_CXX14_CONSTEXPR in defined(...)

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@337028 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2018-07-13 17:31:36 +00:00
parent e585baf371
commit 1548d77c82

View File

@@ -1024,7 +1024,7 @@ template <unsigned> struct __static_assert_check {};
#endif
#ifndef _LIBCPP_CONSTEXPR_IF_NODEBUG
#if defined(_LIBCPP_DEBUG) || _LIBCPP_HAS_NO_CXX14_CONSTEXPR
#if defined(_LIBCPP_DEBUG) || defined(_LIBCPP_HAS_NO_CXX14_CONSTEXPR)
#define _LIBCPP_CONSTEXPR_IF_NODEBUG
#else
#define _LIBCPP_CONSTEXPR_IF_NODEBUG constexpr