Pack enums in c++

This commit is contained in:
Nic Barker 2024-09-29 12:36:46 +13:00
parent f1d1079faf
commit 24c4bcd565

2
clay.h
View File

@ -29,7 +29,7 @@
#endif
#ifdef _MSC_VER
#define CLAY_PACKED_ENUM
#define CLAY_PACKED_ENUM : uint8_t
#else
#define CLAY_PACKED_ENUM __attribute__((__packed__))
#endif