提交 a9042ea2 编写于 作者: A arvinzzz

fix: 在liteos_a内核C库中补充stdalign.h

close: #I42FYJ
Signed-off-by: Narvinzzz <zhaotianyu9@huawei.com>
Change-Id: I8365a057f8793ea35b03a0dfd95eae033ea9861a
上级 4a514c87
#ifndef _STDALIGN_H
#define _STDALIGN_H
#ifndef __cplusplus
/* this whole header only works in C11 or with compiler extensions */
#if __STDC_VERSION__ < 201112L && defined( __GNUC__)
#undef _Alignas
#define _Alignas(t) __attribute__((__aligned__(t)))
#undef _Alignof
#define _Alignof(t) __alignof__(t)
#endif
#define alignas _Alignas
#define alignof _Alignof
#endif
#define __alignas_is_defined 1
#define __alignof_is_defined 1
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册