aboutsummaryrefslogtreecommitdiffstats
path: root/common/align.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-10-29 11:51:41 -0700
committerChris Robinson <[email protected]>2018-10-29 11:51:41 -0700
commit5fea511ccec500f575898df33e9934dec075527c (patch)
treef7112a50b2d76a28d5b30a8bf8e523442dafde90 /common/align.h
parent662e1c5cc2107d45895ac4f6d8c598c89016eaeb (diff)
Fix some more headers for C++
Diffstat (limited to 'common/align.h')
-rw-r--r--common/align.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/align.h b/common/align.h
index a5d8a20c..53a5806a 100644
--- a/common/align.h
+++ b/common/align.h
@@ -5,7 +5,7 @@
#include <stdalign.h>
#endif
-#ifndef alignas
+#if !defined(alignas) && !defined(__cplusplus)
#if defined(HAVE_C11_ALIGNAS)
#define alignas _Alignas
#else