Follow-up to earlier warning correction with Microsoft compiler

The earlier warning is architecture-dependent.

The warning showed up under an x64 build, but not an x86 build.
The __unaligned keyword is not supported under an x86 build.

Refine the preprocessor conditional.
This commit is contained in:
nhmall
2021-06-08 21:51:55 -04:00
parent cfc4f24c8e
commit 3af88b8802

View File

@@ -36,7 +36,7 @@ extern void objects_globals_init(void);
# endif
#endif
#ifdef _MSC_VER
#if defined(_MSC_VER) && defined(_WIN64)
#define UNALIGNED_POINTER __unaligned
#else
#define UNALIGNED_POINTER