new: 增加一些编译器相关的宏

This commit is contained in:
fslongjin
2022-10-05 21:40:03 +08:00
parent 7087e9fbc1
commit 9b37ff3e5a
7 changed files with 94 additions and 16 deletions

View File

@ -87,4 +87,11 @@ typedef struct __pthread_condattr_t
int clockid; // clockid_t
} pthread_condattr_t;
typedef uint64_t gfp_t;
typedef uint64_t gfp_t;
// 定义8字节对齐变量属性
#ifndef __aligned_u64
#define __aligned_u64 uint64_t __attribute__((aligned(8)))
#endif
#define aligned_u64 __aligned_u64