[libcxx-commits] [PATCH] D57362: [libc++] Don't define operator new/delete when using vcruntime
Tom Anderson via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jan 30 11:08:29 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rCXX352647: [libc++] Don't define operator new/delete when using vcruntime (authored by thomasanderson, committed by ).
Herald added subscribers: libcxx-commits, ldionne.
Repository:
rCXX libc++
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57362/new/
https://reviews.llvm.org/D57362
Files:
include/__config
Index: include/__config
===================================================================
--- include/__config
+++ include/__config
@@ -985,17 +985,18 @@
#define _DECLARE_C99_LDBL_MATH 1
#endif
+#if defined(_LIBCPP_ABI_MICROSOFT) && !defined(_LIBCPP_NO_VCRUNTIME)
+# define _LIBCPP_DEFER_NEW_TO_VCRUNTIME
+#endif
+
// If we are getting operator new from the MSVC CRT, then allocation overloads
// for align_val_t were added in 19.12, aka VS 2017 version 15.3.
#if defined(_LIBCPP_MSVCRT) && defined(_MSC_VER) && _MSC_VER < 1912
# define _LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION
-#elif defined(_LIBCPP_ABI_MICROSOFT) && !defined(_LIBCPP_NO_VCRUNTIME)
-# define _LIBCPP_DEFER_NEW_TO_VCRUNTIME
-# if !defined(__cpp_aligned_new)
- // We're defering to Microsoft's STL to provide aligned new et al. We don't
- // have it unless the language feature test macro is defined.
-# define _LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION
-# endif
+#elif defined(_LIBCPP_DEFER_NEW_TO_VCRUNTIME) && !defined(__cpp_aligned_new)
+ // We're defering to Microsoft's STL to provide aligned new et al. We don't
+ // have it unless the language feature test macro is defined.
+# define _LIBCPP_HAS_NO_LIBRARY_ALIGNED_ALLOCATION
#endif
#if defined(__APPLE__)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57362.184336.patch
Type: text/x-patch
Size: 1266 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190130/b6ba7a33/attachment.bin>
More information about the libcxx-commits
mailing list