summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-01-14 23:11:21 +0100
committerMichael Lutz <michi@icosahedron.de>2021-02-14 14:16:40 +0100
commitf137b3057a9f618fbdfd9dc2f7eee1ea576086ac (patch)
treee319820d504f4788002d72c924534651cb7b7860 /src
parent33099355b8f89e9a2e87f3f7797b7366fc68f330 (diff)
downloadopenttd-f137b3057a9f618fbdfd9dc2f7eee1ea576086ac.tar.xz
Codechange: [Win32] Increase SDK version for 32-bit target.
Use the same Windows XP target as for 64-bit. Current MSVC version will not produce a binary that works on anything earlier anyway.
Diffstat (limited to 'src')
-rw-r--r--src/stdafx.h22
1 files changed, 6 insertions, 16 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index 7ee3ce204..fe2dc8f61 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -157,22 +157,12 @@
/* Stuff for MSVC */
#if defined(_MSC_VER)
# pragma once
-# ifdef _WIN64
- /* No 64-bit Windows below XP, so we can safely assume it as the target platform. */
-# define NTDDI_VERSION NTDDI_WINXP // Windows XP
-# define _WIN32_WINNT 0x501 // Windows XP
-# define _WIN32_WINDOWS 0x501 // Windows XP
-# define WINVER 0x0501 // Windows XP
-# define _WIN32_IE_ 0x0600 // 6.0 (XP+)
-# else
- /* Define a win32 target platform, to override defaults of the SDK
- * We need to define NTDDI version for Vista SDK, but win2k is minimum */
-# define NTDDI_VERSION NTDDI_WIN2K // Windows 2000
-# define _WIN32_WINNT 0x0500 // Windows 2000
-# define _WIN32_WINDOWS 0x400 // Windows 95
-# define WINVER 0x0400 // Windows NT 4.0 / Windows 95
-# define _WIN32_IE_ 0x0401 // 4.01 (win98 and NT4SP5+)
-# endif
+# define NTDDI_VERSION NTDDI_WINXP // Windows XP
+# define _WIN32_WINNT 0x501 // Windows XP
+# define _WIN32_WINDOWS 0x501 // Windows XP
+# define WINVER 0x0501 // Windows XP
+# define _WIN32_IE_ 0x0600 // 6.0 (XP+)
+
# define NOMINMAX // Disable min/max macros in windows.h.
# pragma warning(disable: 4244) // 'conversion' conversion from 'type1' to 'type2', possible loss of data