Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2010-07-15 16:30:16 +0400
committerMike Erwin <significant.bit@gmail.com>2010-07-15 16:30:16 +0400
commitf6730216e0b8d1f7a23fdf3e10565d0fc64c3f92 (patch)
treec2e1eee4b31ce1225dc339455d601f6281f955cc /intern
parent7aa8ae37819b4a95910089c27fa1e6d704a0f907 (diff)
Tweak Windows #includes to require WinXP or newer and speed up build times.
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_DisplayManagerWin32.cpp4
-rw-r--r--intern/ghost/intern/GHOST_DropTargetWin32.h6
2 files changed, 9 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_DisplayManagerWin32.cpp b/intern/ghost/intern/GHOST_DisplayManagerWin32.cpp
index 29d15d3e4de..916ddf81217 100644
--- a/intern/ghost/intern/GHOST_DisplayManagerWin32.cpp
+++ b/intern/ghost/intern/GHOST_DisplayManagerWin32.cpp
@@ -38,7 +38,11 @@
#include "GHOST_Debug.h"
// We do not support multiple monitors at the moment
+
+#define _WIN32_WINNT 0x501 // require Windows XP or newer
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
+
#define COMPILE_MULTIMON_STUBS
#ifndef FREE_WINDOWS
#include <multimon.h>
diff --git a/intern/ghost/intern/GHOST_DropTargetWin32.h b/intern/ghost/intern/GHOST_DropTargetWin32.h
index 6fbf33ce9f8..039c8e8a313 100644
--- a/intern/ghost/intern/GHOST_DropTargetWin32.h
+++ b/intern/ghost/intern/GHOST_DropTargetWin32.h
@@ -28,7 +28,11 @@
#ifndef _GHOST_DROP_TARGET_WIN32_H_
#define _GHOST_DROP_TARGET_WIN32_H_
+#define _WIN32_WINNT 0x501 // require Windows XP or newer
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
+#include <shellapi.h>
+
#include <string.h>
#include <GHOST_Types.h>
#include "GHOST_WindowWin32.h"
@@ -41,7 +45,7 @@ public:
* Enables clients to get pointers to other interfaces on a given object
* through the QueryInterface method, and manage the existence of the object
* through the AddRef and Release methods. All other COM interfaces are
- * inherited, directly or indirectly, from IUnknown. Therefore, the three
+ * inherited, directly or indirectly, from IUnknown. Therefore, the three
* methods in IUnknown are the first entries in the VTable for every interface.
*/
HRESULT __stdcall QueryInterface (REFIID riid, void ** ppvObj);