fixed visual studio project

This commit is contained in:
2022-08-14 14:21:14 +06:00
parent 7ba7201d3a
commit 171d5c4763
3 changed files with 10 additions and 24 deletions

View File

@@ -49,18 +49,8 @@ extern "C" {
#pragma GCC error "unknown compiler"
#endif
#ifndef NULL
#define NULL ((void*)0)
#endif
#ifdef __GNUC__
#define PACK(...) __VA_ARGS__ __attribute__((__packed__))
#elif defined(_MSC_VER)
#define PACK(...) __pragma(pack(push, 1)) __VA_ARGS__ __pragma(pack(pop))
#endif
#define PACK(...) __VA_ARGS__ __attribute__((__packed__))
#if __cplusplus
}