stdalign.h 409 B

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