[GDI32_WINETEST] Add a PCH.
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 17 Dec 2017 12:20:00 +0000 (13:20 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 17 Dec 2017 12:20:00 +0000 (13:20 +0100)
16 files changed:
modules/rostests/winetests/gdi32/CMakeLists.txt
modules/rostests/winetests/gdi32/bitmap.c
modules/rostests/winetests/gdi32/brush.c
modules/rostests/winetests/gdi32/clipping.c
modules/rostests/winetests/gdi32/dc.c
modules/rostests/winetests/gdi32/dib.c
modules/rostests/winetests/gdi32/font.c
modules/rostests/winetests/gdi32/gdiobj.c
modules/rostests/winetests/gdi32/generated.c
modules/rostests/winetests/gdi32/icm.c
modules/rostests/winetests/gdi32/mapping.c
modules/rostests/winetests/gdi32/metafile.c
modules/rostests/winetests/gdi32/palette.c
modules/rostests/winetests/gdi32/path.c
modules/rostests/winetests/gdi32/pen.c
modules/rostests/winetests/gdi32/precomp.h [new file with mode: 0644]

index 79cdf31..b9a4974 100644 (file)
@@ -16,9 +16,13 @@ list(APPEND SOURCE
     palette.c
     path.c
     pen.c
-    testlist.c)
+    precomp.h)
+
+add_executable(gdi32_winetest
+    ${SOURCE}
+    testlist.c
+    resource.rc)
 
-add_executable(gdi32_winetest ${SOURCE} resource.rc)
 set_module_type(gdi32_winetest win32cui)
 add_importlibs(gdi32_winetest gdi32 user32 advapi32 msvcrt kernel32)
 
@@ -26,4 +30,5 @@ if(MSVC)
     add_importlibs(gdi32_winetest ntdll)
 endif()
 
+add_pch(gdi32_winetest precomp.h SOURCE)
 add_rostests_file(TARGET gdi32_winetest)
index 2b01e74..4946050 100755 (executable)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
-#include <assert.h>
-#include <string.h>
-
-#include "ntstatus.h"
-#define WIN32_NO_STATUS
-#include "windef.h"
-#include "winbase.h"
-#include "winerror.h"
-#include "wingdi.h"
-#include "winuser.h"
-#include "mmsystem.h"
-#include "wine/winternl.h"
+#include "precomp.h"
+
 #ifndef __REACTOS__ /* CORE-11331 */
 #include "wine/ddk/d3dkmthk.h"
 #endif
 
-#include "wine/test.h"
-
 #ifndef __REACTOS__ /* CORE-11331 */
 static NTSTATUS (WINAPI *pD3DKMTCreateDCFromMemory)( D3DKMT_CREATEDCFROMMEMORY *desc );
 static NTSTATUS (WINAPI *pD3DKMTDestroyDCFromMemory)( const D3DKMT_DESTROYDCFROMMEMORY *desc );
index 1a10429..7420995 100755 (executable)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
-
-#include "windef.h"
-#include "winbase.h"
-#include "wingdi.h"
-#include "winuser.h"
-
-#include "wine/test.h"
+#include "precomp.h"
 
 typedef struct _STOCK_BRUSH {
     COLORREF color;
index 60bd31e..02b39e3 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include "wine/test.h"
-#include "winbase.h"
-#include "wingdi.h"
-#include "winuser.h"
+#include "precomp.h"
 
 static void test_GetRandomRgn(void)
 {
index d248989..7f9c91a 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
+#include "precomp.h"
 
-#define WINVER 0x0501 /* request latest DEVMODE */
-#define NONAMELESSSTRUCT
-#define NONAMELESSUNION
-
-#include <assert.h>
-#include <stdio.h>
-
-#include "wine/test.h"
-#include "winbase.h"
-#include "wingdi.h"
-#include "winuser.h"
-#include "winspool.h"
-#include "winerror.h"
+#include <winspool.h>
 
 #ifndef LAYOUT_LTR
 #define LAYOUT_LTR 0
index 5ef6358..0ec9e58 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
-#include <stdio.h>
-#include <math.h>
-
-#include "windef.h"
-#include "winbase.h"
-#include "wingdi.h"
-#include "winuser.h"
-#include "wincrypt.h"
-#include "mmsystem.h" /* DIBINDEX */
-
-#include "wine/test.h"
+#include "precomp.h"
+
+#include <wincrypt.h>
 
 #ifndef M_PI
 #define M_PI 3.14159265358979323846
index 70708d5..61ee6f3 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
-#include <assert.h>
+#include "precomp.h"
 
-#include "windef.h"
-#include "winbase.h"
-#include "wingdi.h"
-#include "winuser.h"
-#include "winnls.h"
-
-#include "wine/test.h"
+#include <winnls.h>
 
 static inline BOOL match_off_by_n(int a, int b, unsigned int n)
 {
index 65374ea..729a96d 100755 (executable)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
-#include <assert.h>
-
-#include "windef.h"
-#include "winbase.h"
-#include "wingdi.h"
-#include "winuser.h"
-
-#include "wine/test.h"
+#include "precomp.h"
 
 static void test_gdi_objects(void)
 {
index 019524d..1507be9 100644 (file)
@@ -5,15 +5,7 @@
  * Unit tests for data structure packing
  */
 
-#define WINVER 0x0501
-#define _WIN32_IE 0x0501
-#define _WIN32_WINNT 0x0501
-
-#define WINE_NOWINSOCK
-
-#include "windows.h"
-
-#include "wine/test.h"
+#include "precomp.h"
 
 /***********************************************************************
  * Compatibility macros
index 6208090..76ba1ad 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
-
-#include "windef.h"
-#include "winbase.h"
-#include "winuser.h"
-#include "wingdi.h"
-
-#include "wine/test.h"
+#include "precomp.h"
 
 static const WCHAR displayW[] = {'D','I','S','P','L','A','Y',0};
 
index 6635a72..810c1b0 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdio.h>
-#include <math.h>
-
-#include "wine/test.h"
-#include "winbase.h"
-#include "wingdi.h"
-#include "winuser.h"
-#include "winerror.h"
+#include "precomp.h"
 
 static DWORD (WINAPI *pSetLayout)(HDC hdc, DWORD layout);
 static DWORD (WINAPI *pGetLayout)(HDC hdc);
index eeec79c..c7da7bf 100755 (executable)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <assert.h>
-#include <stdio.h>
-#include <math.h>
-
-#include "wine/test.h"
-#include "winbase.h"
-#include "wingdi.h"
-#include "winuser.h"
-#include "winerror.h"
+#include "precomp.h"
 
 static LOGFONTA orig_lf;
 static BOOL emr_processed = FALSE;
index 045f530..a4e4f36 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
-
-#include "windef.h"
-#include "winbase.h"
-#include "wingdi.h"
-#include "winuser.h"
-#include "mmsystem.h"
-
-#include "wine/test.h"
+#include "precomp.h"
 
 static const PALETTEENTRY logpalettedata[8] = {
     { 0x10, 0x20, 0x30, PC_NOCOLLAPSE },
index 48ef4f0..78bf7ae 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
-#include <stdio.h>
-#include <assert.h>
-#include "windef.h"
-#include "winbase.h"
-#include "wingdi.h"
-
-#include "wine/test.h"
-
-#include "winuser.h"
-#include "winerror.h"
+#include "precomp.h"
 
 #define expect(expected, got) ok(got == expected, "Expected %.8x, got %.8x\n", expected, got)
 
index 43f00d8..1937e40 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
-
-#include "windef.h"
-#include "winbase.h"
-#include "wingdi.h"
-#include "winuser.h"
-
-#include "wine/test.h"
+#include "precomp.h"
 
 #define expect(expected, got) ok(got == expected, "Expected %.8x, got %.8x\n", expected, got)
 #define expect2(expected, alt, got) ok(got == expected || got == alt, \
diff --git a/modules/rostests/winetests/gdi32/precomp.h b/modules/rostests/winetests/gdi32/precomp.h
new file mode 100644 (file)
index 0000000..11e9e70
--- /dev/null
@@ -0,0 +1,16 @@
+#ifndef _GDI32_WINETEST_PRECOMP_H_
+#define _GDI32_WINETEST_PRECOMP_H_
+
+#define WIN32_NO_STATUS
+#define NONAMELESSUNION
+
+#include <assert.h>
+#include <stdio.h>
+#include <math.h>
+
+#include <wine/test.h>
+#include <wingdi.h>
+#include <winuser.h>
+#include <mmsystem.h>
+
+#endif /* !_GDI32_WINETEST_PRECOMP_H_ */