diff options
Diffstat (limited to 'nestegg')
-rw-r--r-- | nestegg/halloc/src/align.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nestegg/halloc/src/align.h b/nestegg/halloc/src/align.h index 4c6e1831f..0e57d6ac2 100644 --- a/nestegg/halloc/src/align.h +++ b/nestegg/halloc/src/align.h @@ -15,6 +15,15 @@ #ifndef _LIBP_ALIGN_H_ #define _LIBP_ALIGN_H_ +#ifdef _MSC_VER + +/* + * MSVC defines max_align_t as a double. + */ +typedef double max_align_t; + +#elif !defined(__CLANG_MAX_ALIGN_T_DEFINED) && !defined(_GCC_MAX_ALIGN_T) + /* * a type with the most strict alignment requirements */ @@ -34,3 +43,5 @@ typedef union max_align max_align_t; #endif +#endif + |