xref: /interface/sdk_c/third_party/musl/ndk_musl_include/stdalign.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /interface/sdk_c/third_party/musl/ndk_musl_include/
17777dab0Sopenharmony_ci#ifndef _STDALIGN_H
27777dab0Sopenharmony_ci#define _STDALIGN_H
37777dab0Sopenharmony_ci
47777dab0Sopenharmony_ci#ifndef __cplusplus
57777dab0Sopenharmony_ci
67777dab0Sopenharmony_ci/* this whole header only works in C11 or with compiler extensions */
77777dab0Sopenharmony_ci#if __STDC_VERSION__ < 201112L && defined( __GNUC__)
87777dab0Sopenharmony_ci#define _Alignas(t) __attribute__((__aligned__(t)))
97777dab0Sopenharmony_ci#define _Alignof(t) __alignof__(t)
107777dab0Sopenharmony_ci#endif
117777dab0Sopenharmony_ci
127777dab0Sopenharmony_ci#define alignas _Alignas
137777dab0Sopenharmony_ci#define alignof _Alignof
147777dab0Sopenharmony_ci
157777dab0Sopenharmony_ci#endif
167777dab0Sopenharmony_ci
177777dab0Sopenharmony_ci#define __alignas_is_defined 1
187777dab0Sopenharmony_ci#define __alignof_is_defined 1
197777dab0Sopenharmony_ci
207777dab0Sopenharmony_ci#endif
21

Indexes created Thu Nov 07 10:32:03 CST 2024