File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -985,17 +985,18 @@ template <unsigned> struct __static_assert_check {};
985
985
#define _DECLARE_C99_LDBL_MATH 1
986
986
#endif
987
987
988
+ #if defined(_LIBCPP_ABI_MICROSOFT) && !defined(_LIBCPP_NO_VCRUNTIME)
989
+ # define _LIBCPP_DEFER_NEW_TO_VCRUNTIME
990
+ #endif
991
+
988
992
// If we are getting operator new from the MSVC CRT, then allocation overloads
989
993
// for align_val_t were added in 19.12, aka VS 2017 version 15.3.
990
994
#if defined(_LIBCPP_MSVCRT) && defined(_MSC_VER) && _MSC_VER < 1912
991
995
# define _LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION
992
- #elif defined(_LIBCPP_ABI_MICROSOFT) && !defined(_LIBCPP_NO_VCRUNTIME)
993
- # define _LIBCPP_DEFER_NEW_TO_VCRUNTIME
994
- # if !defined(__cpp_aligned_new)
995
- // We're defering to Microsoft's STL to provide aligned new et al. We don't
996
- // have it unless the language feature test macro is defined.
997
- # define _LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION
998
- # endif
996
+ #elif defined(_LIBCPP_DEFER_NEW_TO_VCRUNTIME) && !defined(__cpp_aligned_new)
997
+ // We're defering to Microsoft's STL to provide aligned new et al. We don't
998
+ // have it unless the language feature test macro is defined.
999
+ # define _LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION
999
1000
#endif
1000
1001
1001
1002
#if defined(__APPLE__)
You can’t perform that action at this time.
0 commit comments