1
0

stdalign.h 379 B

123456789101112131415
  1. #ifndef _STDALIGN_H
  2. #define _STDALIGN_H
  3. /* this whole header only works in C11 or with compiler extensions */
  4. #if __STDC_VERSION__ < 201112L && defined( __GNUC__)
  5. #define _Alignas(t) __attribute__((__aligned__(t)))
  6. #define _Alignof(t) __alignof__(t)
  7. #endif
  8. #define alignas _Alignas
  9. #define alignof _Alignof
  10. #define __alignas_is_defined 1
  11. #define __alignof_is_defined 1
  12. #endif