aboutsummaryrefslogtreecommitdiffstats
path: root/include/align.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-08-16 10:17:30 -0700
committerChris Robinson <[email protected]>2014-08-16 10:17:30 -0700
commit8630e8c7fc0ee64baeff3e82411ad2445cab9f9b (patch)
tree8faf6c4c22ec4f96de6a30c54fcb60b05c48aa9d /include/align.h
parentdd1df64537b11becd910e4c84f0e8e41cc6e51da (diff)
Don't try to include stdalign.h if C11 _Alignas isn't available
Some compilers will allow including stdalign.h, and even define alignas to _Alignas, even if that C11 feature is unavailable (e.g. because it requires a suitable -std= setting).
Diffstat (limited to 'include/align.h')
-rw-r--r--include/align.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/align.h b/include/align.h
index babd4106..be01f4e4 100644
--- a/include/align.h
+++ b/include/align.h
@@ -1,7 +1,7 @@
#ifndef AL_ALIGN_H
#define AL_ALIGN_H
-#ifdef HAVE_STDALIGN_H
+#if defined(HAVE_STDALIGN_H) && defined(HAVE_C11_ALIGNAS)
#include <stdalign.h>
#endif