Browse Source

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

pre-master-46
Holger Vogt 3 years ago
parent
commit
d658e0427c
  1. 1
      src/osdi/osdidefs.h

1
src/osdi/osdidefs.h

@ -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…
Cancel
Save