• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _STDALIGN_H
2 #define _STDALIGN_H
3 
4 #ifdef __ICCARM__ /* for iar */
5 #include_next <stdalign.h>
6 #else
7 
8 #ifndef __cplusplus
9 
10 /* this whole header only works in C11 or with compiler extensions */
11 #if __STDC_VERSION__ < 201112L && defined( __GNUC__)
12 #define _Alignas(t) __attribute__((__aligned__(t)))
13 #define _Alignof(t) __alignof__(t)
14 #endif
15 
16 #define alignas _Alignas
17 #define alignof _Alignof
18 
19 #endif
20 
21 #define __alignas_is_defined 1
22 #define __alignof_is_defined 1
23 
24 #endif /* __ICCARM__ */
25 #endif
26