[PATCH] D28478: Check for musl-libc's max_align_t in addition to other variants.
David L. Jones via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 9 17:39:13 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL294683: Check for musl-libc's max_align_t in addition to other variants. (authored by dlj).
Changed prior to commit:
https://reviews.llvm.org/D28478?vs=83681&id=87925#toc
Repository:
rL LLVM
https://reviews.llvm.org/D28478
Files:
libcxx/trunk/include/cstddef
libcxx/trunk/include/stddef.h
Index: libcxx/trunk/include/stddef.h
===================================================================
--- libcxx/trunk/include/stddef.h
+++ libcxx/trunk/include/stddef.h
@@ -53,7 +53,8 @@
}
// Re-use the compiler's <stddef.h> max_align_t where possible.
-#if !defined(__CLANG_MAX_ALIGN_T_DEFINED) && !defined(_GCC_MAX_ALIGN_T)
+#if !defined(__CLANG_MAX_ALIGN_T_DEFINED) && !defined(_GCC_MAX_ALIGN_T) && \
+ !defined(__DEFINED_max_align_t)
typedef long double max_align_t;
#endif
Index: libcxx/trunk/include/cstddef
===================================================================
--- libcxx/trunk/include/cstddef
+++ libcxx/trunk/include/cstddef
@@ -48,7 +48,8 @@
using ::ptrdiff_t;
using ::size_t;
-#if defined(__CLANG_MAX_ALIGN_T_DEFINED) || defined(_GCC_MAX_ALIGN_T)
+#if defined(__CLANG_MAX_ALIGN_T_DEFINED) || defined(_GCC_MAX_ALIGN_T) || \
+ defined(__DEFINED_max_align_t)
// Re-use the compiler's <stddef.h> max_align_t where possible.
using ::max_align_t;
#else
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28478.87925.patch
Type: text/x-patch
Size: 997 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170210/674f6d12/attachment-0001.bin>
More information about the cfe-commits
mailing list