Definitions for setting structures alignment and packing
所有检测均成功
ci/woodpecker/push/build Pipeline was successful
所有检测均成功
ci/woodpecker/push/build Pipeline was successful
这个提交包含在:
父节点
73fc7607cd
当前提交
2e2b01742a
@ -30,8 +30,9 @@
|
||||
#define NULL ((PVOID) 0)
|
||||
#define NULL64 ((VOID * PVOID) 0)
|
||||
|
||||
/* Preprocessor macro for defining a structure alignment */
|
||||
#define ALIGN(x) __declspec(align(x))
|
||||
/* Preprocessor macros for defining a structure alignment and packing */
|
||||
#define ALIGN(x) __attribute__((aligned(x)))
|
||||
#define PACK __attribute__((packed))
|
||||
|
||||
/* Macro for calculating size of an array */
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(*x))
|
||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户