aboutsummaryrefslogtreecommitdiffstats
path: root/common/align.h
diff options
context:
space:
mode:
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