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).
This commit is contained in:
Chris Robinson
2014-08-16 10:17:30 -07:00
parent dd1df64537
commit 8630e8c7fc
+1 -1
View File
@@ -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