From 3af88b88023e96ebff30669747e5494dd6716a4e Mon Sep 17 00:00:00 2001 From: nhmall Date: Tue, 8 Jun 2021 21:51:55 -0400 Subject: [PATCH] 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. --- win/share/tile2bmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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