Enable compilation with MSVC (alignof seems to be available only for C++)

This commit is contained in:
Holger Vogt 2023-05-13 23:41:08 +02:00
parent b08eb2266a
commit d658e0427c
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ typedef struct {
#ifdef _MSC_VER
#define MAX_ALIGN 8
#define alignof sizeof
#else
#define MAX_ALIGN alignof(max_align_t)
#endif