From b02975d7b18d659f1ad0fef3f837a836041c493c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Thu, 9 Jan 2025 00:14:58 -0500 Subject: [PATCH] Hard-code the _WIN32_WINNT_VISTA value. Maybe Borland is also using pre-vista headers? --- src/xpdev/genwrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xpdev/genwrap.c b/src/xpdev/genwrap.c index 08b393a158..0937e62c35 100644 --- a/src/xpdev/genwrap.c +++ b/src/xpdev/genwrap.c @@ -1155,7 +1155,7 @@ int64_t xp_fast_timer64(void) else ret = -1; #elif defined(_WIN32) -#if _WIN32_WINNT < _WIN32_WINNT_VISTA +#if WINVER < 0x0600 ret=GetTickCount() / 1000; #else ret=GetTickCount64() / 1000; -- GitLab