From 8630e8c7fc0ee64baeff3e82411ad2445cab9f9b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 16 Aug 2014 10:17:30 -0700 Subject: 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). --- include/align.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/align.h') 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 #endif -- cgit v1.2.3