[libcxx] r343441 - Attempt to fix aligned allocation configuration under clang-cl
Eric Fiselier
eric at efcs.ca
Sun Sep 30 21:08:06 PDT 2018
Author: ericwf
Date: Sun Sep 30 21:08:06 2018
New Revision: 343441
URL: http://llvm.org/viewvc/llvm-project?rev=343441&view=rev
Log:
Attempt to fix aligned allocation configuration under clang-cl
When we're using clang-cl and Microsoft's runtime implementation,
we don't provide align_val_t or aligned new/delete ourselves.
This patch updates the _LIBCPP_HAS_NO_ALIGNED_ALLOCATION macro
to reflect this.
Modified:
libcxx/trunk/include/new
Modified: libcxx/trunk/include/new
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/new?rev=343441&r1=343440&r2=343441&view=diff
==============================================================================
--- libcxx/trunk/include/new (original)
+++ libcxx/trunk/include/new Sun Sep 30 21:08:06 2018
@@ -171,6 +171,10 @@ enum class _LIBCPP_ENUM_VIS align_val_t
enum align_val_t { __zero = 0, __max = (size_t)-1 };
#endif
#endif
+#elif !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_ALIGNED_ALLOCATION
#endif
} // std
More information about the libcxx-commits
mailing list