From: nhmall Date: Wed, 9 Jun 2021 01:51:55 +0000 (-0400) Subject: Follow-up to earlier warning correction with Microsoft compiler X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3af88b88023e96ebff30669747e5494dd6716a4e;p=nethack 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. --- diff --git a/win/share/tile2bmp.c b/win/share/tile2bmp.c index 434ab694f..cfcc1c01e 100644 --- a/win/share/tile2bmp.c +++ b/win/share/tile2bmp.c @@ -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