Enable compilation with MSVC (alignof seems to be available only for C++)
This commit is contained in:
parent
b08eb2266a
commit
d658e0427c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue