Alexandre Julliard : Define _WIN32_WINNT before including any headers.
Alexandre Julliard
julliard at winehq.org
Thu Dec 4 09:02:19 CST 2008
Module: wine
Branch: master
Commit: c03917c17344a817e0c562d971da87f44ada3bc0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c03917c17344a817e0c562d971da87f44ada3bc0
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Dec 4 12:10:16 2008 +0100
Define _WIN32_WINNT before including any headers.
---
dlls/comctl32/tests/subclass.c | 4 ++--
dlls/kernel32/tests/file.c | 6 +++---
dlls/kernel32/tests/sync.c | 2 +-
dlls/shell32/tests/shlexec.c | 6 +++---
dlls/user32/tests/broadcast.c | 4 ++--
dlls/user32/tests/msg.c | 4 ++--
6 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/dlls/comctl32/tests/subclass.c b/dlls/comctl32/tests/subclass.c
index 9c879e3..c225f72 100644
--- a/dlls/comctl32/tests/subclass.c
+++ b/dlls/comctl32/tests/subclass.c
@@ -17,11 +17,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#define _WIN32_WINNT 0x0501 /* For SetWindowSubclass/etc */
+
#include <assert.h>
#include <stdarg.h>
-#define _WIN32_WINNT 0x0501 /* For SetWindowSubclass/etc */
-
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
diff --git a/dlls/kernel32/tests/file.c b/dlls/kernel32/tests/file.c
index b045025..338ba46 100644
--- a/dlls/kernel32/tests/file.c
+++ b/dlls/kernel32/tests/file.c
@@ -20,13 +20,13 @@
*
*/
+/* ReplaceFile requires Windows 2000 or newer */
+#define _WIN32_WINNT 0x0500
+
#include <stdarg.h>
#include <stdlib.h>
#include <time.h>
-/* ReplaceFile requires Windows 2000 or newer */
-#define _WIN32_WINNT 0x0500
-
#include "wine/test.h"
#include "windef.h"
#include "winbase.h"
diff --git a/dlls/kernel32/tests/sync.c b/dlls/kernel32/tests/sync.c
index 9f811bc..bb9afe3 100644
--- a/dlls/kernel32/tests/sync.c
+++ b/dlls/kernel32/tests/sync.c
@@ -18,11 +18,11 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#define _WIN32_WINNT 0x500
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <windef.h>
-#define _WIN32_WINNT 0x500
#include <winbase.h>
#include "wine/test.h"
diff --git a/dlls/shell32/tests/shlexec.c b/dlls/shell32/tests/shlexec.c
index ac7915a..80ccdf7 100644
--- a/dlls/shell32/tests/shlexec.c
+++ b/dlls/shell32/tests/shlexec.c
@@ -32,14 +32,14 @@
* we could check
*/
-#include <stdio.h>
-#include <assert.h>
-
/* Needed to get SEE_MASK_NOZONECHECKS with the PSDK */
#define NTDDI_WINXPSP1 0x05010100
#define NTDDI_VERSION NTDDI_WINXPSP1
#define _WIN32_WINNT 0x0501
+#include <stdio.h>
+#include <assert.h>
+
#include "wtypes.h"
#include "winbase.h"
#include "windef.h"
diff --git a/dlls/user32/tests/broadcast.c b/dlls/user32/tests/broadcast.c
index ae9cd29..b0990e3 100644
--- a/dlls/user32/tests/broadcast.c
+++ b/dlls/user32/tests/broadcast.c
@@ -18,12 +18,12 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#define _WIN32_WINNT 0x0501
+
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
-#define _WIN32_WINNT 0x0501
-
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index 2c3dea5..f4496a7 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -20,12 +20,12 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#define _WIN32_WINNT 0x0501 /* For WM_CHANGEUISTATE,QS_RAWINPUT */
+
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
-#define _WIN32_WINNT 0x0501 /* For WM_CHANGEUISTATE,QS_RAWINPUT */
-
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
More information about the wine-cvs
mailing list