xref: /third_party/musl/porting/liteos_m/kernel/include/stdalign.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/porting/liteos_m/kernel/include/
1570af302Sopenharmony_ci#ifndef _STDALIGN_H
2570af302Sopenharmony_ci#define _STDALIGN_H
3570af302Sopenharmony_ci
4570af302Sopenharmony_ci#ifndef __cplusplus
5570af302Sopenharmony_ci
6570af302Sopenharmony_ci/* this whole header only works in C11 or with compiler extensions */
7570af302Sopenharmony_ci#if __STDC_VERSION__ < 201112L && defined( __GNUC__)
8570af302Sopenharmony_ci#define _Alignas(t) __attribute__((__aligned__(t)))
9570af302Sopenharmony_ci#define _Alignof(t) __alignof__(t)
10570af302Sopenharmony_ci#endif
11570af302Sopenharmony_ci
12570af302Sopenharmony_ci#define alignas _Alignas
13570af302Sopenharmony_ci#define alignof _Alignof
14570af302Sopenharmony_ci
15570af302Sopenharmony_ci#endif
16570af302Sopenharmony_ci
17570af302Sopenharmony_ci#define __alignas_is_defined 1
18570af302Sopenharmony_ci#define __alignof_is_defined 1
19570af302Sopenharmony_ci
20570af302Sopenharmony_ci#endif
21

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