Definitions for setting structures alignment and packing
所有检测均成功
ci/woodpecker/push/build Pipeline was successful

这个提交包含在:
Rafal Kupiec 2023-02-02 15:47:21 +01:00
父节点 73fc7607cd
当前提交 2e2b01742a
签署人:: belliash
GPG 密钥 ID: 4E829243E0CFE6B4

查看文件

@ -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))