From 55a6cca64fe00c54a4c880f404dcb362f555034e Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 29 Jul 2012 18:43:09 +0300 Subject: MS-Windows followup for 2012-07-28T23:05:32Z!eggert@cs.ucla.edu. nt/inc/stdalign.h (_Alignas, alignas): Define. src/makefile.w32-in (LISP_H): Add $(NT_INC)/stdalign.h. Fixes: debbugs:9772 --- nt/inc/stdalign.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'nt/inc/stdalign.h') diff --git a/nt/inc/stdalign.h b/nt/inc/stdalign.h index 2ff7a43096f..7e349dc31d0 100644 --- a/nt/inc/stdalign.h +++ b/nt/inc/stdalign.h @@ -13,4 +13,13 @@ #endif #define alignof _Alignof +#if __GNUC__ +# define _Alignas(a) __attribute__ ((__aligned__ (a))) +#elif 1300 <= _MSC_VER +# define _Alignas(a) __declspec (align (a)) +#endif +#ifdef _Alignas +# define alignas _Alignas +#endif + #endif /* _NT_STDALIGN_H_ */ -- cgit v1.2.1