[PATCH] D42354: Fix libcxx MSVC C++17 redefinition of 'align_val_t'

Force.Charlie-I via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 22 05:55:30 PST 2018


fcharlie updated this revision to Diff 130871.

https://reviews.llvm.org/D42354

Files:
  include/new


Index: include/new
===================================================================
--- include/new
+++ include/new
@@ -160,6 +160,7 @@
 
 #endif  // defined(_LIBCPP_BUILDING_NEW) || (_LIBCPP_STD_VER > 11)
 
+#if !defined(_LIBCPP_ABI_MICROSOFT) || defined(_LIBCPP_NO_VCRUNTIME)
 #if !defined(_LIBCPP_HAS_NO_ALIGNED_ALLOCATION) || _LIBCPP_STD_VER > 14
 #ifndef _LIBCPP_CXX03_LANG
 enum class _LIBCPP_ENUM_VIS align_val_t : size_t { };
@@ -167,6 +168,7 @@
 enum align_val_t { __zero = 0, __max = (size_t)-1 };
 #endif
 #endif
+#endif
 
 }  // std
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42354.130871.patch
Type: text/x-patch
Size: 550 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180122/32148f89/attachment.bin>


More information about the cfe-commits mailing list