From bf651985634678fe6769ad40afae4bc85c17f3ce Mon Sep 17 00:00:00 2001 From: adamyg Date: Fri, 16 Feb 2024 02:49:57 +0800 Subject: [PATCH] WINVER MSVC --- mcwin32/libintl/src/gettext.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcwin32/libintl/src/gettext.c b/mcwin32/libintl/src/gettext.c index 28d92ea..87e22b0 100644 --- a/mcwin32/libintl/src/gettext.c +++ b/mcwin32/libintl/src/gettext.c @@ -36,9 +36,9 @@ __RCSID("$NetBSD: gettext.c,v 1.28 2012/07/30 23:04:42 yamt Exp $"); #ifndef WINDOWS_MEAN_AND_LEAN #define WINDOWS_MEAN_AND_LEAN #endif -#if !defined(WINVER) || (WINVER < 0x500) +#if defined(_MSC_VER) && (!defined(WINVER) || (WINVER < 0x500)) #undef WINVER -#define WINVER WIN32_WINNT /* GetThreadLocale, 2000+ */ +#define WINVER WIN32_WINNT /* GetThreadLocale, SDK 10+ */ #endif #include #pragma comment(lib, "Kernel32.lib")