From c180306e85b9edf327af8b86b13a6510cdf94b11 Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Sat, 17 Nov 2012 19:22:56 +0100 Subject: [PATCH] Added checks for Windows SDK version. --- src/Global.cpp | 2 +- src/Targetver.h | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/Global.cpp b/src/Global.cpp index 87df4525..4c124bf5 100644 --- a/src/Global.cpp +++ b/src/Global.cpp @@ -831,7 +831,7 @@ static unsigned int __stdcall lamexp_debug_thread_proc(LPVOID lpParameter) { while(!lamexp_check_for_debugger()) { - Sleep(32); + Sleep(250); } if(HANDLE thrd = OpenThread(THREAD_TERMINATE, FALSE, g_main_thread_id)) { diff --git a/src/Targetver.h b/src/Targetver.h index 563239f5..49510b1f 100644 --- a/src/Targetver.h +++ b/src/Targetver.h @@ -21,6 +21,21 @@ #pragma once +// Check Windows SDK version +// We currently do NOT support the Windows SDK 8.0, because it broke Windows XP support! +// Also the minimum required Windows SDK version to build LameXP currently is 6.0A +#include +#if !defined(VER_PRODUCTMAJORVERSION) || !defined(VER_PRODUCTMINORVERSION) +#error Windows SDK version is NOT defined !!! +#endif +#if (VER_PRODUCTMAJORVERSION < 6) +#error Your Windows SDK is too old (unsupported), please build LameXP with Windows SDK version 7.1! (6.0A or 7.0A should work too) +#endif +#if (VER_PRODUCTMAJORVERSION > 6) || ((VER_PRODUCTMAJORVERSION == 6) && (VER_PRODUCTMINORVERSION > 1)) +#error Your Windows SDK is too new (unsupported), please build LameXP with Windows SDK version 7.1! (6.0A or 7.0A should work too) +#endif + + // The following macros define the minimum required platform. The minimum required platform // is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run // your application. The macros work by enabling all features available on platform versions up to and