summaryrefslogtreecommitdiff
path: root/src/stdafx.h
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2007-03-02 15:02:12 +0000
committerDarkvater <Darkvater@openttd.org>2007-03-02 15:02:12 +0000
commite514d3972f0b86ab64dc9f210e2d20d713e0f8b1 (patch)
tree513ec58300472f7cfcb1be11a3f45e88cbbef65e /src/stdafx.h
parent5828617a0761c33a28b01c0476a602f924107134 (diff)
downloadopenttd-e514d3972f0b86ab64dc9f210e2d20d713e0f8b1.tar.xz
(svn r8974) -Fix: [win32] Define a win32 target platform ourselves so that we don't conflict with Vista Platform SDK (boekabart)
Diffstat (limited to 'src/stdafx.h')
-rw-r--r--src/stdafx.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/stdafx.h b/src/stdafx.h
index 9e8d2913e..c5371e40b 100644
--- a/src/stdafx.h
+++ b/src/stdafx.h
@@ -126,6 +126,15 @@
/* Stuff for MSVC */
#if defined(_MSC_VER)
# pragma once
+/* 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+)
+
# define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
# pragma warning(disable: 4244) // 'conversion' conversion from 'type1' to 'type2', possible loss of data
# pragma warning(disable: 4761) // integral size mismatch in argument : conversion supplied