Module: wine Branch: master Commit: 3369c532028e2b8f156f16480d5be7639bc70cdd URL: http://source.winehq.org/git/wine.git/?a=commit;h=3369c532028e2b8f156f16480d...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Feb 18 12:31:50 2013 +0100
user32/tests: Define the required Windows version before including anything.
---
dlls/user32/tests/dialog.c | 4 ++-- dlls/user32/tests/sysparams.c | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/dlls/user32/tests/dialog.c b/dlls/user32/tests/dialog.c index 0ebab4c..145b20f 100644 --- a/dlls/user32/tests/dialog.c +++ b/dlls/user32/tests/dialog.c @@ -29,12 +29,12 @@ * normally be met. */
+#define WINVER 0x0600 /* For NONCLIENTMETRICS with padding */ + #include <assert.h> #include <stdio.h> #include <stdarg.h>
-#define WINVER 0x0600 /* For NONCLIENTMETRICS with padding */ - #include "wine/test.h" #include "windef.h" #include "winbase.h" diff --git a/dlls/user32/tests/sysparams.c b/dlls/user32/tests/sysparams.c index ad43cb7..d4704fa 100644 --- a/dlls/user32/tests/sysparams.c +++ b/dlls/user32/tests/sysparams.c @@ -17,16 +17,15 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */
+#define _WIN32_WINNT 0x0600 /* For SPI_GETMOUSEHOVERWIDTH and more */ +#define _WIN32_IE 0x0700 +#define WINVER 0x0600 /* For COLOR_MENUBAR, NONCLIENTMETRICS with padding */ + #include <assert.h> #include <stdlib.h> #include <stdarg.h> #include <stdio.h>
-#undef _WIN32_WINNT -#define _WIN32_WINNT 0x0600 /* For SPI_GETMOUSEHOVERWIDTH and more */ -#define _WIN32_IE 0x0700 -#define WINVER 0x0600 /* For COLOR_MENUBAR, NONCLIENTMETRICS with padding */ - #include "wine/test.h" #include "windef.h" #include "winbase.h"