[GDI32_APITEST] Add a PCH.
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 2 Dec 2017 20:00:06 +0000 (21:00 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 2 Dec 2017 21:14:47 +0000 (22:14 +0100)
74 files changed:
modules/rostests/apitests/gdi32/AddFontMemResourceEx.c
modules/rostests/apitests/gdi32/AddFontResource.c
modules/rostests/apitests/gdi32/AddFontResourceEx.c
modules/rostests/apitests/gdi32/BeginPath.c
modules/rostests/apitests/gdi32/CMakeLists.txt
modules/rostests/apitests/gdi32/CombineRgn.c
modules/rostests/apitests/gdi32/CombineTransform.c
modules/rostests/apitests/gdi32/CreateBitmap.c
modules/rostests/apitests/gdi32/CreateBitmapIndirect.c
modules/rostests/apitests/gdi32/CreateCompatibleDC.c
modules/rostests/apitests/gdi32/CreateDIBPatternBrush.c
modules/rostests/apitests/gdi32/CreateDIBitmap.c
modules/rostests/apitests/gdi32/CreateFont.c
modules/rostests/apitests/gdi32/CreateFontIndirect.c
modules/rostests/apitests/gdi32/CreateIconIndirect.c
modules/rostests/apitests/gdi32/CreatePen.c
modules/rostests/apitests/gdi32/CreateRectRgn.c
modules/rostests/apitests/gdi32/DPtoLP.c
modules/rostests/apitests/gdi32/EngAcquireSemaphore.c
modules/rostests/apitests/gdi32/EngCreateSemaphore.c
modules/rostests/apitests/gdi32/EngDeleteSemaphore.c
modules/rostests/apitests/gdi32/EngReleaseSemaphore.c
modules/rostests/apitests/gdi32/EnumFontFamilies.c
modules/rostests/apitests/gdi32/ExcludeClipRect.c
modules/rostests/apitests/gdi32/ExtCreatePen.c
modules/rostests/apitests/gdi32/ExtCreateRegion.c
modules/rostests/apitests/gdi32/FrameRgn.c
modules/rostests/apitests/gdi32/GdiConvertBitmap.c
modules/rostests/apitests/gdi32/GdiConvertBrush.c
modules/rostests/apitests/gdi32/GdiConvertDC.c
modules/rostests/apitests/gdi32/GdiConvertFont.c
modules/rostests/apitests/gdi32/GdiConvertPalette.c
modules/rostests/apitests/gdi32/GdiConvertRegion.c
modules/rostests/apitests/gdi32/GdiDeleteLocalDC.c
modules/rostests/apitests/gdi32/GdiGetCharDimensions.c
modules/rostests/apitests/gdi32/GdiGetLocalBrush.c
modules/rostests/apitests/gdi32/GdiGetLocalDC.c
modules/rostests/apitests/gdi32/GdiReleaseLocalDC.c
modules/rostests/apitests/gdi32/GdiSetAttrs.c
modules/rostests/apitests/gdi32/GetClipBox.c
modules/rostests/apitests/gdi32/GetClipRgn.c
modules/rostests/apitests/gdi32/GetCurrentObject.c
modules/rostests/apitests/gdi32/GetDIBColorTable.c
modules/rostests/apitests/gdi32/GetDIBits.c
modules/rostests/apitests/gdi32/GetFontResourceInfoW.c
modules/rostests/apitests/gdi32/GetGlyphIndices.c
modules/rostests/apitests/gdi32/GetObject.c
modules/rostests/apitests/gdi32/GetPixel.c
modules/rostests/apitests/gdi32/GetRandomRgn.c
modules/rostests/apitests/gdi32/GetStockObject.c
modules/rostests/apitests/gdi32/GetTextExtentExPoint.c
modules/rostests/apitests/gdi32/GetTextFace.c
modules/rostests/apitests/gdi32/MaskBlt.c
modules/rostests/apitests/gdi32/NtGdiAddFontResource.c
modules/rostests/apitests/gdi32/OffsetClipRgn.c
modules/rostests/apitests/gdi32/OffsetRgn.c
modules/rostests/apitests/gdi32/PaintRgn.c
modules/rostests/apitests/gdi32/PatBlt.c
modules/rostests/apitests/gdi32/RealizePalette.c
modules/rostests/apitests/gdi32/Rectangle.c
modules/rostests/apitests/gdi32/SelectObject.c
modules/rostests/apitests/gdi32/SetBoundsRect.c
modules/rostests/apitests/gdi32/SetBrushOrgEx.c
modules/rostests/apitests/gdi32/SetDCPenColor.c
modules/rostests/apitests/gdi32/SetDIBits.c
modules/rostests/apitests/gdi32/SetDIBitsToDevice.c
modules/rostests/apitests/gdi32/SetMapMode.c
modules/rostests/apitests/gdi32/SetPixel.c
modules/rostests/apitests/gdi32/SetSysColors.c
modules/rostests/apitests/gdi32/SetWindowExtEx.c
modules/rostests/apitests/gdi32/SetWorldTransform.c
modules/rostests/apitests/gdi32/init.c
modules/rostests/apitests/gdi32/init.h
modules/rostests/apitests/gdi32/precomp.h [new file with mode: 0644]

index 057a6b4..e8b7186 100644 (file)
@@ -9,10 +9,7 @@
  *                    Captured from firefox, embedded on reactos.org
  */
 
  *                    Captured from firefox, embedded on reactos.org
  */
 
-
-#include <apitest.h>
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
 
 typedef struct _fnt_res
 {
 
 typedef struct _fnt_res
 {
index e020dfc..cee4079 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <stdio.h>
-#include <apitest.h>
-#include <wingdi.h>
+#include "precomp.h"
 
 #define COUNT 26
 
 
 #define COUNT 26
 
index 0cae71a..9448a6f 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 void Test_AddFontResourceExW()
 {
 
 void Test_AddFontResourceExW()
 {
index db4761d..176a0c4 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 void Test_BeginPath()
 {
 
 void Test_BeginPath()
 {
index e1edb91..3dfe1c3 100644 (file)
@@ -73,10 +73,11 @@ list(APPEND SOURCE
     SetWindowExtEx.c
     SetWorldTransform.c
     init.c
     SetWindowExtEx.c
     SetWorldTransform.c
     init.c
-    testlist.c)
+    precomp.h)
 
 
-add_executable(gdi32_apitest ${SOURCE} resource.rc)
+add_executable(gdi32_apitest ${SOURCE} testlist.c resource.rc)
 target_link_libraries(gdi32_apitest ${PSEH_LIB} win32ksys)
 set_module_type(gdi32_apitest win32cui)
 add_importlibs(gdi32_apitest gdi32 user32 msvcrt kernel32 ntdll)
 target_link_libraries(gdi32_apitest ${PSEH_LIB} win32ksys)
 set_module_type(gdi32_apitest win32cui)
 add_importlibs(gdi32_apitest gdi32 user32 msvcrt kernel32 ntdll)
+add_pch(gdi32_apitest precomp.h SOURCE)
 add_rostests_file(TARGET gdi32_apitest)
 add_rostests_file(TARGET gdi32_apitest)
index 3e10ec3..b000a49 100644 (file)
@@ -5,8 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-#include <windows.h>
+#include "precomp.h"
 
 typedef struct _RECT_TEST
 {
 
 typedef struct _RECT_TEST
 {
index 679d34c..8989133 100644 (file)
@@ -5,10 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winddi.h>
+#include "precomp.h"
 
 typedef union
 {
 
 typedef union
 {
index 9c8a1b0..4cf719f 100644 (file)
@@ -5,11 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-
-#define DEFAULT_BITMAP 21
+#include "precomp.h"
 
 void Test_CreateBitmap_Params()
 {
 
 void Test_CreateBitmap_Params()
 {
index fb448d9..e9050f9 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Magnus Olsen
  */
 
  * PROGRAMMERS:     Magnus Olsen
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 void Test_CreateBitmapIndirect()
 {
 
 void Test_CreateBitmapIndirect()
 {
index 3d7c7dc..6be042a 100644 (file)
@@ -5,10 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
 
 void Test_CreateCompatibleDC()
 {
 
 void Test_CreateCompatibleDC()
 {
index b1cf27d..6ac5da0 100644 (file)
@@ -5,9 +5,8 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
+#include "precomp.h"
 
 
-#include <wingdi.h>
 #include "init.h"
 
 /* New color use parameter. See support.microsoft.com/kb/kbview/108497 */
 #include "init.h"
 
 /* New color use parameter. See support.microsoft.com/kb/kbview/108497 */
index cfc88f9..1e30261 100644 (file)
@@ -5,10 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
 
 #include "init.h"
 
 
 #include "init.h"
 
index e4a378d..cc25186 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 #define INVALIDFONT "ThisFontDoesNotExist"
 
 
 #define INVALIDFONT "ThisFontDoesNotExist"
 
index 477952d..4940957 100644 (file)
@@ -6,8 +6,7 @@
  *                  Katayama Hirofumi MZ
  */
 
  *                  Katayama Hirofumi MZ
  */
 
-#include <apitest.h>
-#include <wingdi.h>
+#include "precomp.h"
 
 #define trace_if(val, msg) do { if (!(val)) trace(msg); } while (0)
 
 
 #define trace_if(val, msg) do { if (!(val)) trace(msg); } while (0)
 
index bfd78e2..8c1bf36 100644 (file)
@@ -1,9 +1,5 @@
 
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
-
+#include "precomp.h"
 
 // FIXME user32
 
 
 // FIXME user32
 
@@ -204,5 +200,3 @@ START_TEST(CreateIconIndirect)
     ok(iconinfo2.hbmColor == NULL, "\n");
 
 }
     ok(iconinfo2.hbmColor == NULL, "\n");
 
 }
-
-
index ad03b3b..90e6d09 100644 (file)
@@ -5,12 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winddi.h>
-#include <include/ntgdityp.h>
-#include <include/ntgdihdl.h>
+#include "precomp.h"
 
 void Test_CreatePen()
 {
 
 void Test_CreatePen()
 {
index e590469..5c799b7 100644 (file)
@@ -5,7 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
+#include "precomp.h"
 
 void Test_CreateRectRgn()
 {
 
 void Test_CreateRectRgn()
 {
@@ -16,4 +16,3 @@ START_TEST(CreateRectRgn)
 {
     Test_CreateRectRgn();
 }
 {
     Test_CreateRectRgn();
 }
-
index 940e7a7..dd2a6f9 100644 (file)
@@ -5,10 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
 
 void Test_DPtoLP_Params()
 {
 
 void Test_DPtoLP_Params()
 {
index 9401454..be0f9d1 100644 (file)
@@ -5,10 +5,7 @@
  * PROGRAMMERS:     Magnus Olsen
  */
 
  * PROGRAMMERS:     Magnus Olsen
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winddi.h>
+#include "precomp.h"
 
 void Test_EngAcquireSemaphore()
 {
 
 void Test_EngAcquireSemaphore()
 {
index eb6ccec..0bd25a1 100644 (file)
@@ -5,10 +5,7 @@
  * PROGRAMMERS:     Magnus Olsen
  */
 
  * PROGRAMMERS:     Magnus Olsen
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winddi.h>
+#include "precomp.h"
 
 void Test_EngCreateSemaphore()
 {
 
 void Test_EngCreateSemaphore()
 {
index f129fb9..d8c1218 100644 (file)
@@ -5,10 +5,7 @@
  * PROGRAMMERS:     Magnus Olsen
  */
 
  * PROGRAMMERS:     Magnus Olsen
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winddi.h>
+#include "precomp.h"
 
 void Test_EngDeleteSemaphore()
 {
 
 void Test_EngDeleteSemaphore()
 {
index c6d20bb..be843f5 100644 (file)
@@ -5,10 +5,7 @@
  * PROGRAMMERS:     Magnus Olsen
  */
 
  * PROGRAMMERS:     Magnus Olsen
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winddi.h>
+#include "precomp.h"
 
 void Test_EngReleaseSemaphore()
 {
 
 void Test_EngReleaseSemaphore()
 {
index 51d7f86..b9ae7f3 100644 (file)
@@ -5,12 +5,7 @@
  * PROGRAMMERS:     Thomas Faber <thomas.faber@reactos.org>
  */
 
  * PROGRAMMERS:     Thomas Faber <thomas.faber@reactos.org>
  */
 
-#include <apitest.h>
-
-#include <winnls.h>
-#include <wingdi.h>
-#include <winddi.h>
-#include <strsafe.h>
+#include "precomp.h"
 
 static BYTE ContextContinue;
 static BYTE ContextStop;
 
 static BYTE ContextContinue;
 static BYTE ContextStop;
index af27cd6..ee4e74b 100644 (file)
@@ -5,18 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
-
-#define CLIPRGN 1
-
-#define ok_rect(_prc, _left, _top, _right, _bottom) \
-    ok_int((_prc)->left, _left); \
-    ok_int((_prc)->top, _top); \
-    ok_int((_prc)->right, _right); \
-    ok_int((_prc)->bottom, _bottom); \
+#include "precomp.h"
 
 void Test_ExcludeClipRect()
 {
 
 void Test_ExcludeClipRect()
 {
index 5901194..c8370bd 100644 (file)
@@ -5,13 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winddi.h>
-#include <include/ntgdityp.h>
-#include <include/ntgdihdl.h>
-#include <stdio.h>
+#include "precomp.h"
 
 #define ok_lasterror(err) \
     ok(GetLastError() == err, "expected last error " #err " but got 0x%lx\n", GetLastError());
 
 #define ok_lasterror(err) \
     ok(GetLastError() == err, "expected last error " #err " but got 0x%lx\n", GetLastError());
index eea2323..16fe55f 100644 (file)
@@ -5,9 +5,8 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
+#include "precomp.h"
 
 
-#include <windows.h>
 #include <math.h>
 
 VOID
 #include <math.h>
 
 VOID
index 2187acf..547d494 100644 (file)
@@ -5,9 +5,8 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-#include <windows.h>
-#include <stdio.h>
+#include "precomp.h"
+
 #include "init.h"
 
 #if 0
 #include "init.h"
 
 #if 0
index 78f5899..06e6e33 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 HBITMAP WINAPI GdiConvertBitmap(HBITMAP hbm);
 
 
 HBITMAP WINAPI GdiConvertBitmap(HBITMAP hbm);
 
index 4fb97f3..d82ddd7 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 HBRUSH WINAPI GdiConvertBrush(HBRUSH hbr);
 
 
 HBRUSH WINAPI GdiConvertBrush(HBRUSH hbr);
 
index dd9f736..2917907 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 HDC WINAPI GdiConvertDC(HDC hdc);
 
 
 HDC WINAPI GdiConvertDC(HDC hdc);
 
index d8e9078..bfc7bb3 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 HFONT WINAPI GdiConvertFont(HFONT);
 
 
 HFONT WINAPI GdiConvertFont(HFONT);
 
index 85dc878..ffb383a 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 HPALETTE WINAPI GdiConvertPalette(HPALETTE);
 
 
 HPALETTE WINAPI GdiConvertPalette(HPALETTE);
 
index 028842c..0a32e4a 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 HRGN WINAPI GdiConvertRegion(HRGN);
 
 
 HRGN WINAPI GdiConvertRegion(HRGN);
 
index 6de9eba..7faf690 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 BOOL WINAPI GdiDeleteLocalDC(HDC);
 
 
 BOOL WINAPI GdiDeleteLocalDC(HDC);
 
index 2f03dfe..6ac880f 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 void Test_GdiGetCharDimensions()
 {
 
 void Test_GdiGetCharDimensions()
 {
index 7af9a1a..349f1d5 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 HBRUSH WINAPI GdiGetLocalBrush(HBRUSH hbr);
 
 
 HBRUSH WINAPI GdiGetLocalBrush(HBRUSH hbr);
 
index e445da1..590004c 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 HDC WINAPI GdiGetLocalDC(HDC);
 
 
 HDC WINAPI GdiGetLocalDC(HDC);
 
index 2c9572c..0966efd 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 BOOL WINAPI GdiReleaseLocalDC(HDC);
 
 
 BOOL WINAPI GdiReleaseLocalDC(HDC);
 
index 537250e..798a528 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 BOOL WINAPI GdiSetAttrs(HDC);
 
 
 BOOL WINAPI GdiSetAttrs(HDC);
 
index 3ee3c25..5df59c2 100644 (file)
@@ -5,16 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
-
-#define ok_rect(_prc, _left, _top, _right, _bottom) \
-    ok_int((_prc)->left, _left); \
-    ok_int((_prc)->top, _top); \
-    ok_int((_prc)->right, _right); \
-    ok_int((_prc)->bottom, _bottom); \
+#include "precomp.h"
 
 void Test_GetClipBox()
 {
 
 void Test_GetClipBox()
 {
index c952d22..7edb8f9 100644 (file)
@@ -5,10 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
 
 void Test_GetClipRgn()
 {
 
 void Test_GetClipRgn()
 {
index 5aea265..a5a32f3 100644 (file)
@@ -5,13 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winddi.h>
-#include <winuser.h>
-#include <include/ntgdityp.h>
-#include <include/ntgdihdl.h>
+#include "precomp.h"
 
 void Test_GetCurrentObject()
 {
 
 void Test_GetCurrentObject()
 {
index ff70091..eb15ed4 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 void Test_GetDIBColorTable()
 {
 
 void Test_GetDIBColorTable()
 {
index cfc3618..3b13ada 100644 (file)
@@ -5,10 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
 
 #include "init.h"
 
 
 #include "init.h"
 
index bb4d379..72cb75c 100644 (file)
@@ -4,11 +4,8 @@
  * PURPOSE:         Test for GetFontResourceInfoW
  * PROGRAMMERS:     Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
  */
  * PURPOSE:         Test for GetFontResourceInfoW
  * PROGRAMMERS:     Katayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
  */
-#include <apitest.h>
-#include <winuser.h>
-#include <wingdi.h>
-#include <winnls.h>
-#include <stdio.h>
+
+#include "precomp.h"
 
 /* GetFontResourceInfoW is undocumented */
 BOOL WINAPI GetFontResourceInfoW(LPCWSTR lpFileName, DWORD *pdwBufSize, void* lpBuffer, DWORD dwType);
 
 /* GetFontResourceInfoW is undocumented */
 BOOL WINAPI GetFontResourceInfoW(LPCWSTR lpFileName, DWORD *pdwBufSize, void* lpBuffer, DWORD dwType);
index 6e33773..281616b 100644 (file)
@@ -5,11 +5,7 @@
 * PROGRAMMERS:     Ged Murphy
 */
 
 * PROGRAMMERS:     Ged Murphy
 */
 
-#include <apitest.h>
-#include <wingdi.h>
-#include <winuser.h>
-#include <strsafe.h>
-
+#include "precomp.h"
 
 #define ok_lasterrornotchanged() \
     ok_err(0x12345)
 
 #define ok_lasterrornotchanged() \
     ok_err(0x12345)
index 0eaff6e..a11241e 100644 (file)
@@ -5,13 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winddi.h>
-#include <winuser.h>
-#include <include/ntgdityp.h>
-#include <include/ntgdihdl.h>
+#include "precomp.h"
 
 void
 Test_General(void)
 
 void
 Test_General(void)
index ddd6ed7..adf98e8 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Jérôme Gardou
  */
 
  * PROGRAMMERS:     Jérôme Gardou
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 void Test_GetPixel_1bpp()
 {
 
 void Test_GetPixel_1bpp()
 {
index 5c82279..63eea44 100644 (file)
@@ -5,13 +5,8 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
+#include "precomp.h"
 
 
-#include <stdio.h>
-#include <wingdi.h>
-#include <winuser.h>
-
-#define CLIPRGN 1
 #define METARGN 2
 #define APIRGN  3
 #define SYSRGN  4
 #define METARGN 2
 #define APIRGN  3
 #define SYSRGN  4
index 4f7c01e..4ad2e8e 100644 (file)
@@ -5,15 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winddi.h>
-#include <include/ntgdityp.h>
-#include <include/ntgdihdl.h>
-
-#define TEST(x) ok(x, #x"\n")
-#define RTEST(x) ok(x, #x"\n")
+#include "precomp.h"
 
 void Test_GetStockObject()
 {
 
 void Test_GetStockObject()
 {
index 594838c..9ec4481 100644 (file)
@@ -5,14 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <stdio.h>
-#include <wingdi.h>
-#include <winuser.h>
-
-#define TEST(x) ok(x, #x"\n")
-#define RTEST(x) ok(x, #x"\n")
+#include "precomp.h"
 
 void Test_GetTextExtentExPoint()
 {
 
 void Test_GetTextExtentExPoint()
 {
index 9686d1b..e304986 100644 (file)
@@ -5,12 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-
-#define TEST(x) ok(x, #x"\n")
-#define RTEST(x) ok(x, #x"\n")
+#include "precomp.h"
 
 void Test_GetTextFace()
 {
 
 void Test_GetTextFace()
 {
index 6fe552b..2ebb7c4 100644 (file)
@@ -5,10 +5,8 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
+#include "precomp.h"
 
 
-#include <wingdi.h>
-#include <winuser.h>
 #include "init.h"
 
 void Test_MaskBlt_1bpp()
 #include "init.h"
 
 void Test_MaskBlt_1bpp()
index eaded16..c9c335b 100644 (file)
@@ -5,11 +5,9 @@
  * PROGRAMMERS:     Víctor Martínez Calvo ( victor.martinez@reactos.org )
  */
 
  * PROGRAMMERS:     Víctor Martínez Calvo ( victor.martinez@reactos.org )
  */
 
-#include <apitest.h>
-#include <wingdi.h>
-#include <ndk/rtlfuncs.h>
-#include <strsafe.h>
+#include "precomp.h"
 
 
+#include <ndk/rtlfuncs.h>
 
 INT
 APIENTRY
 
 INT
 APIENTRY
index a40265b..046bd06 100644 (file)
@@ -5,10 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-#include <wingdi.h>
-
-#define CLIPRGN 1
+#include "precomp.h"
 
 void Test_OffsetClipRgn()
 {
 
 void Test_OffsetClipRgn()
 {
index 11bb882..fcda1f3 100644 (file)
@@ -5,10 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-#include <windows.h>
-#include <stdio.h>
-#include "init.h"
+#include "precomp.h"
 
 void Test_OffsetRgn()
 {
 
 void Test_OffsetRgn()
 {
index 36fa935..083dcfd 100644 (file)
@@ -5,11 +5,9 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-#include <windows.h>
-#include <stdio.h>
-#include "init.h"
+#include "precomp.h"
 
 
+#include "init.h"
 
 void Test_PaintRgn()
 {
 
 void Test_PaintRgn()
 {
index a849377..4563192 100644 (file)
@@ -5,10 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <stdio.h>
-#include <wingdi.h>
+#include "precomp.h"
 
 HBITMAP ghbmpTarget;
 PULONG gpulTargetBits;
 
 HBITMAP ghbmpTarget;
 PULONG gpulTargetBits;
index 461420a..d3c20c0 100644 (file)
@@ -5,9 +5,8 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <stdio.h>
-#include <wine/test.h>
-#include <windows.h>
+#include "precomp.h"
+
 #include "init.h"
 
 START_TEST(RealizePalette)
 #include "init.h"
 
 START_TEST(RealizePalette)
@@ -19,4 +18,3 @@ START_TEST(RealizePalette)
     ok_int(RealizePalette(ghdcDIB32), 0);
 
 }
     ok_int(RealizePalette(ghdcDIB32), 0);
 
 }
-
index 308680c..266664b 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Jérôme Gardou
  */
 
  * PROGRAMMERS:     Jérôme Gardou
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 void Test_Rectangle(void)
 {
 
 void Test_Rectangle(void)
 {
index 0bae440..b7ddb8f 100644 (file)
@@ -5,17 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <stdio.h>
-#include <wingdi.h>
-#include <winddi.h>
-#include <winuser.h>
-#include <include/ntgdityp.h>
-#include <include/ntgdihdl.h>
-
-#define TEST(x) ok(x, #x"\n")
-#define RTEST(x) ok(x, #x"\n")
+#include "precomp.h"
 
 HDC hdc1, hdc2;
 
 
 HDC hdc1, hdc2;
 
index 261d99d..7d1359e 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Thomas Faber <thomas.faber@reactos.org
  */
 
  * PROGRAMMERS:     Thomas Faber <thomas.faber@reactos.org
  */
 
-#include <apitest.h>
-#include <winuser.h>
-#include <wingdi.h>
+#include "precomp.h"
 
 START_TEST(SetBoundsRect)
 {
 
 START_TEST(SetBoundsRect)
 {
index 74acb15..e708fef 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 void Test_Set(ULONG ulLine, HDC hdc, INT x, INT y, LPPOINT ppt, BOOL bExp, DWORD dwErrExp)
 {
 
 void Test_Set(ULONG ulLine, HDC hdc, INT x, INT y, LPPOINT ppt, BOOL bExp, DWORD dwErrExp)
 {
index 0f91656..397b810 100644 (file)
@@ -5,10 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
 
 void Test_SetDCPenColor()
 {
 
 void Test_SetDCPenColor()
 {
index 6a00814..1c8a1c9 100644 (file)
@@ -5,9 +5,7 @@
  * PROGRAMMERS:     Jérôme Gardou
  */
 
  * PROGRAMMERS:     Jérôme Gardou
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
+#include "precomp.h"
 
 void Test_SetDIBits()
 {
 
 void Test_SetDIBits()
 {
index 1a86a36..6e35b0d 100644 (file)
@@ -5,9 +5,8 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
+#include "precomp.h"
 
 
-#include <wingdi.h>
 #include "init.h"
 
 static void
 #include "init.h"
 
 static void
index 7c8c048..004bf0c 100644 (file)
@@ -5,13 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
-
-#define TEST(x) ok(x, #x"\n")
-#define RTEST(x) ok(x, #x"\n")
+#include "precomp.h"
 
 void Test_SetMapMode()
 {
 
 void Test_SetMapMode()
 {
index 1d27583..14da033 100644 (file)
@@ -5,9 +5,8 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
+#include "precomp.h"
 
 
-#include <wingdi.h>
 #include <mmsystem.h>
 
 static struct
 #include <mmsystem.h>
 
 static struct
index d662996..c7584a7 100644 (file)
@@ -5,12 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
-
-#define TEST(x) ok(x, #x"\n")
+#include "precomp.h"
 
 #define NUM_SYSCOLORS 31
 
 
 #define NUM_SYSCOLORS 31
 
index e17af66..b32455a 100644 (file)
@@ -5,13 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
-
-#define TEST(x) ok(x, #x"\n")
-#define RTEST(x) ok(x, #x"\n")
+#include "precomp.h"
 
 void Test_SetWindowExtEx()
 {
 
 void Test_SetWindowExtEx()
 {
index 55e9e09..0b9c03c 100644 (file)
@@ -5,10 +5,7 @@
  * PROGRAMMERS:     Timo Kreuzer
  */
 
  * PROGRAMMERS:     Timo Kreuzer
  */
 
-#include <apitest.h>
-
-#include <wingdi.h>
-#include <winuser.h>
+#include "precomp.h"
 
 void Test_SetWorldTransform()
 {
 
 void Test_SetWorldTransform()
 {
index fcac614..ab7d467 100644 (file)
@@ -1,7 +1,6 @@
 
 
-#include <stdio.h>
-#include <windef.h>
-#include <wingdi.h>
+#include "precomp.h"
+
 #include "init.h"
 
 HBITMAP ghbmp1, ghbmp4, ghbmp8, ghbmp16, ghbmp24, ghbmp32;
 #include "init.h"
 
 HBITMAP ghbmp1, ghbmp4, ghbmp8, ghbmp16, ghbmp24, ghbmp32;
index 48d5ce8..a57e860 100644 (file)
@@ -1,3 +1,4 @@
+#pragma once
 
 extern HBITMAP ghbmp1, ghbmp4, ghbmp8, ghbmp16, ghbmp24, ghbmp32;
 extern HBITMAP ghbmpDIB1, ghbmpDIB4, ghbmpDIB8, ghbmpDIB16, ghbmpDIB24, ghbmpDIB32;
 
 extern HBITMAP ghbmp1, ghbmp4, ghbmp8, ghbmp16, ghbmp24, ghbmp32;
 extern HBITMAP ghbmpDIB1, ghbmpDIB4, ghbmpDIB8, ghbmpDIB16, ghbmpDIB24, ghbmpDIB32;
diff --git a/modules/rostests/apitests/gdi32/precomp.h b/modules/rostests/apitests/gdi32/precomp.h
new file mode 100644 (file)
index 0000000..a0331e7
--- /dev/null
@@ -0,0 +1,25 @@
+#ifndef _GDI32_APITEST_PRECOMP_H_
+#define _GDI32_APITEST_PRECOMP_H_
+
+#include <apitest.h>
+#include <wingdi.h>
+#include <winuser.h>
+#include <winddi.h>
+#include <winnls.h>
+#include <include/ntgdityp.h>
+#include <include/ntgdihdl.h>
+#include <stdio.h>
+#include <strsafe.h>
+
+#define CLIPRGN 1
+
+#define TEST(x) ok(x, #x"\n")
+#define RTEST(x) ok(x, #x"\n")
+
+#define ok_rect(_prc, _left, _top, _right, _bottom) \
+    ok_int((_prc)->left, _left); \
+    ok_int((_prc)->top, _top); \
+    ok_int((_prc)->right, _right); \
+    ok_int((_prc)->bottom, _bottom); \
+
+#endif /* _GDI32_APITEST_PRECOMP_H_ */