From: Amine Khaldi Date: Sat, 2 Dec 2017 20:05:46 +0000 (+0100) Subject: [NTDLL_APITEST] Add a PCH. X-Git-Tag: good~42 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=283bbe734669eb09c935f87e29fca8ab6cff30a0 [NTDLL_APITEST] Add a PCH. --- diff --git a/modules/rostests/apitests/ntdll/CMakeLists.txt b/modules/rostests/apitests/ntdll/CMakeLists.txt index 23da6c55703..42fc3fbdb8c 100644 --- a/modules/rostests/apitests/ntdll/CMakeLists.txt +++ b/modules/rostests/apitests/ntdll/CMakeLists.txt @@ -55,16 +55,17 @@ list(APPEND SOURCE StackOverflow.c SystemInfo.c Timer.c - testlist.c) + precomp.h) if(ARCH STREQUAL "i386") add_asm_files(ntdll_apitest_asm i386/NtContinue.S) endif() -add_executable(ntdll_apitest ${SOURCE} ${ntdll_apitest_asm}) +add_executable(ntdll_apitest ${SOURCE} ${ntdll_apitest_asm} testlist.c) target_link_libraries(ntdll_apitest wine uuid ${PSEH_LIB}) set_module_type(ntdll_apitest win32cui) add_importlibs(ntdll_apitest msvcrt advapi32 kernel32 ntdll) +add_pch(ntdll_apitest precomp.h SOURCE) if(NOT MSVC) set_source_files_properties(RtlGetFullPathName_UstrEx.c PROPERTIES COMPILE_FLAGS "-Wno-format") diff --git a/modules/rostests/apitests/ntdll/LdrEnumResources.c b/modules/rostests/apitests/ntdll/LdrEnumResources.c index 84478c287e4..7d63ecc90a3 100644 --- a/modules/rostests/apitests/ntdll/LdrEnumResources.c +++ b/modules/rostests/apitests/ntdll/LdrEnumResources.c @@ -5,10 +5,7 @@ * PROGRAMMER: Timo Kreuzer */ -#include - -#define WIN32_NO_STATUS -#include +#include "precomp.h" typedef struct _TEST_RESOURCES { diff --git a/modules/rostests/apitests/ntdll/NtAcceptConnectPort.c b/modules/rostests/apitests/ntdll/NtAcceptConnectPort.c index 38dd4d46e6e..359f06382fb 100644 --- a/modules/rostests/apitests/ntdll/NtAcceptConnectPort.c +++ b/modules/rostests/apitests/ntdll/NtAcceptConnectPort.c @@ -5,12 +5,8 @@ * PROGRAMMERS: Thomas Faber */ -#include +#include "precomp.h" -#define WIN32_NO_STATUS -#include -#include -#include #include #define TEST_CONNECTION_INFO_SIGNATURE1 0xaabb0123 diff --git a/modules/rostests/apitests/ntdll/NtAllocateVirtualMemory.c b/modules/rostests/apitests/ntdll/NtAllocateVirtualMemory.c index 748fc2610b4..d1a73cc9a5a 100644 --- a/modules/rostests/apitests/ntdll/NtAllocateVirtualMemory.c +++ b/modules/rostests/apitests/ntdll/NtAllocateVirtualMemory.c @@ -5,11 +5,7 @@ * PROGRAMMER: Thomas Faber */ -#include - -#define WIN32_NO_STATUS -#include -#include +#include "precomp.h" static PVOID Allocations[4096] = { NULL }; static ULONG CurrentAllocation = 0; diff --git a/modules/rostests/apitests/ntdll/NtApphelpCacheControl.c b/modules/rostests/apitests/ntdll/NtApphelpCacheControl.c index aee392844a9..ea9cb2920ce 100644 --- a/modules/rostests/apitests/ntdll/NtApphelpCacheControl.c +++ b/modules/rostests/apitests/ntdll/NtApphelpCacheControl.c @@ -5,12 +5,9 @@ * PROGRAMMER: Mark Jansen */ -#include +#include "precomp.h" -#include - -#define WIN32_NO_STATUS -#include +#include enum ServiceCommands { diff --git a/modules/rostests/apitests/ntdll/NtContinue.c b/modules/rostests/apitests/ntdll/NtContinue.c index 1f619f1ffa6..e2b254beda1 100644 --- a/modules/rostests/apitests/ntdll/NtContinue.c +++ b/modules/rostests/apitests/ntdll/NtContinue.c @@ -5,8 +5,7 @@ * PROGRAMMER: */ -#include -#include +#include "precomp.h" #include #include diff --git a/modules/rostests/apitests/ntdll/NtCreateFile.c b/modules/rostests/apitests/ntdll/NtCreateFile.c index a0f256d4246..147028dd4ee 100644 --- a/modules/rostests/apitests/ntdll/NtCreateFile.c +++ b/modules/rostests/apitests/ntdll/NtCreateFile.c @@ -5,12 +5,7 @@ * PROGRAMMER: Aleksandar Andrejevic */ -#define WIN32_NO_STATUS -#include -//#include -#include -//#include -//#include +#include "precomp.h" START_TEST(NtCreateFile) { diff --git a/modules/rostests/apitests/ntdll/NtCreateKey.c b/modules/rostests/apitests/ntdll/NtCreateKey.c index a8ead335df2..98fc236643f 100644 --- a/modules/rostests/apitests/ntdll/NtCreateKey.c +++ b/modules/rostests/apitests/ntdll/NtCreateKey.c @@ -5,11 +5,7 @@ * PROGRAMMER: Thomas Faber */ -#include - -#include -#include -#include +#include "precomp.h" static VOID diff --git a/modules/rostests/apitests/ntdll/NtCreateThread.c b/modules/rostests/apitests/ntdll/NtCreateThread.c index dcb19215721..b31fc1fb79e 100644 --- a/modules/rostests/apitests/ntdll/NtCreateThread.c +++ b/modules/rostests/apitests/ntdll/NtCreateThread.c @@ -5,10 +5,7 @@ * PROGRAMMER: Aleksandar Andrejevic */ -#define WIN32_NO_STATUS -#include -#include -#include +#include "precomp.h" START_TEST(NtCreateThread) { diff --git a/modules/rostests/apitests/ntdll/NtDeleteKey.c b/modules/rostests/apitests/ntdll/NtDeleteKey.c index fc49cf37fee..57774a74457 100644 --- a/modules/rostests/apitests/ntdll/NtDeleteKey.c +++ b/modules/rostests/apitests/ntdll/NtDeleteKey.c @@ -4,14 +4,7 @@ * PURPOSE: Test for NtDeleteKey */ -#include - -#define WIN32_NO_STATUS -#include -#include -#include -#include -#include +#include "precomp.h" static NTSTATUS diff --git a/modules/rostests/apitests/ntdll/NtFreeVirtualMemory.c b/modules/rostests/apitests/ntdll/NtFreeVirtualMemory.c index d5cf23b3493..7a0b4bc99ce 100644 --- a/modules/rostests/apitests/ntdll/NtFreeVirtualMemory.c +++ b/modules/rostests/apitests/ntdll/NtFreeVirtualMemory.c @@ -1,9 +1,5 @@ -#include - -#define WIN32_NO_STATUS -#include -#include +#include "precomp.h" static void Test_NtFreeVirtualMemory(void) { diff --git a/modules/rostests/apitests/ntdll/NtLoadUnloadKey.c b/modules/rostests/apitests/ntdll/NtLoadUnloadKey.c index b8339af8e58..bc4f4b967aa 100644 --- a/modules/rostests/apitests/ntdll/NtLoadUnloadKey.c +++ b/modules/rostests/apitests/ntdll/NtLoadUnloadKey.c @@ -5,18 +5,7 @@ * PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr) */ -#include - -#include -#include - -#define WIN32_NO_STATUS -#include -#include -#include -#include -#include -#include +#include "precomp.h" /* See xdk/cmtypes.h */ #define REG_CREATED_NEW_KEY 1 diff --git a/modules/rostests/apitests/ntdll/NtMapViewOfSection.c b/modules/rostests/apitests/ntdll/NtMapViewOfSection.c index ad93b1fcb8a..000c4a27382 100644 --- a/modules/rostests/apitests/ntdll/NtMapViewOfSection.c +++ b/modules/rostests/apitests/ntdll/NtMapViewOfSection.c @@ -6,10 +6,7 @@ * Thomas Faber */ -#include -#include -#define WIN32_NO_STATUS -#include +#include "precomp.h" void Test_PageFileSection(void) diff --git a/modules/rostests/apitests/ntdll/NtMutant.c b/modules/rostests/apitests/ntdll/NtMutant.c index a274bb44b79..d80f1e58044 100644 --- a/modules/rostests/apitests/ntdll/NtMutant.c +++ b/modules/rostests/apitests/ntdll/NtMutant.c @@ -1,8 +1,5 @@ -#include - -#include - +#include "precomp.h" VOID Test_Release(VOID) diff --git a/modules/rostests/apitests/ntdll/NtOpenKey.c b/modules/rostests/apitests/ntdll/NtOpenKey.c index e5520fb07d7..e30ee395c6d 100644 --- a/modules/rostests/apitests/ntdll/NtOpenKey.c +++ b/modules/rostests/apitests/ntdll/NtOpenKey.c @@ -5,15 +5,10 @@ * PROGRAMMER: Mark Jansen (mark.jansen@reactos.org) */ -#include - -#include - +#include "precomp.h" #define TEST_STR L"\\Registry\\Machine\\SOFTWARE" - - START_TEST(NtOpenKey) { OBJECT_ATTRIBUTES Object; diff --git a/modules/rostests/apitests/ntdll/NtOpenProcessToken.c b/modules/rostests/apitests/ntdll/NtOpenProcessToken.c index 009f8903df5..93acea876b3 100644 --- a/modules/rostests/apitests/ntdll/NtOpenProcessToken.c +++ b/modules/rostests/apitests/ntdll/NtOpenProcessToken.c @@ -5,11 +5,7 @@ * PROGRAMMER: Thomas Faber */ -#include - -#include -#include -#include +#include "precomp.h" START_TEST(NtOpenProcessToken) { diff --git a/modules/rostests/apitests/ntdll/NtOpenThreadToken.c b/modules/rostests/apitests/ntdll/NtOpenThreadToken.c index 6ad67bb9a6a..66769e37221 100644 --- a/modules/rostests/apitests/ntdll/NtOpenThreadToken.c +++ b/modules/rostests/apitests/ntdll/NtOpenThreadToken.c @@ -5,11 +5,7 @@ * PROGRAMMER: Thomas Faber */ -#include - -#include -#include -#include +#include "precomp.h" START_TEST(NtOpenThreadToken) { diff --git a/modules/rostests/apitests/ntdll/NtProtectVirtualMemory.c b/modules/rostests/apitests/ntdll/NtProtectVirtualMemory.c index 60ef9a01bc1..0d30b0a875c 100644 --- a/modules/rostests/apitests/ntdll/NtProtectVirtualMemory.c +++ b/modules/rostests/apitests/ntdll/NtProtectVirtualMemory.c @@ -6,11 +6,7 @@ * Thomas Faber */ -#include - -#define WIN32_NO_STATUS -#include -#include +#include "precomp.h" static void diff --git a/modules/rostests/apitests/ntdll/NtQueryInformationProcess.c b/modules/rostests/apitests/ntdll/NtQueryInformationProcess.c index 66798a3ae64..ec6c56d170a 100644 --- a/modules/rostests/apitests/ntdll/NtQueryInformationProcess.c +++ b/modules/rostests/apitests/ntdll/NtQueryInformationProcess.c @@ -5,12 +5,7 @@ * PROGRAMMER: Thomas Faber */ -#include - -#define WIN32_NO_STATUS -#include -#include -#include +#include "precomp.h" static LARGE_INTEGER TestStartTime; diff --git a/modules/rostests/apitests/ntdll/NtQueryKey.c b/modules/rostests/apitests/ntdll/NtQueryKey.c index b254363d951..01ecd7bd763 100644 --- a/modules/rostests/apitests/ntdll/NtQueryKey.c +++ b/modules/rostests/apitests/ntdll/NtQueryKey.c @@ -6,13 +6,7 @@ * Thomas Faber */ -#include - -#define WIN32_NO_STATUS -#include -#include -#include -#include +#include "precomp.h" static void diff --git a/modules/rostests/apitests/ntdll/NtQuerySystemEnvironmentValue.c b/modules/rostests/apitests/ntdll/NtQuerySystemEnvironmentValue.c index a554a3eb097..e01cba41057 100644 --- a/modules/rostests/apitests/ntdll/NtQuerySystemEnvironmentValue.c +++ b/modules/rostests/apitests/ntdll/NtQuerySystemEnvironmentValue.c @@ -5,12 +5,7 @@ * PROGRAMMER: Hermès BÉLUSCA - MAÏTO */ -#include - -#define WIN32_NO_STATUS -#include -#include -#include +#include "precomp.h" // Arbitrary-defined constants #define MIN_BUFFER_LENGTH 4L diff --git a/modules/rostests/apitests/ntdll/NtQueryVolumeInformationFile.c b/modules/rostests/apitests/ntdll/NtQueryVolumeInformationFile.c index de6edcadd6e..b361d26681a 100644 --- a/modules/rostests/apitests/ntdll/NtQueryVolumeInformationFile.c +++ b/modules/rostests/apitests/ntdll/NtQueryVolumeInformationFile.c @@ -5,10 +5,7 @@ * PROGRAMMER: Víctor Martínez Calvo */ -#define WIN32_NO_STATUS -#include -#include -#include +#include "precomp.h" static VOID diff --git a/modules/rostests/apitests/ntdll/NtReadFile.c b/modules/rostests/apitests/ntdll/NtReadFile.c index 0d6ceaea9ef..6ec6b23b80a 100644 --- a/modules/rostests/apitests/ntdll/NtReadFile.c +++ b/modules/rostests/apitests/ntdll/NtReadFile.c @@ -5,16 +5,7 @@ * PROGRAMMER: Thomas Faber */ -#include - -#define WIN32_NO_STATUS -#include -#include -#include -#include -#include -#include -#include +#include "precomp.h" static BOOL diff --git a/modules/rostests/apitests/ntdll/NtSaveKey.c b/modules/rostests/apitests/ntdll/NtSaveKey.c index cea42251423..273e2c14b9c 100644 --- a/modules/rostests/apitests/ntdll/NtSaveKey.c +++ b/modules/rostests/apitests/ntdll/NtSaveKey.c @@ -5,13 +5,7 @@ * PROGRAMMERS: Aleksandar Andrejevic */ -#include - -#define WIN32_NO_STATUS -#include -#include -#include -#include +#include "precomp.h" static NTSTATUS diff --git a/modules/rostests/apitests/ntdll/NtSetValueKey.c b/modules/rostests/apitests/ntdll/NtSetValueKey.c index 6da3c9ea546..7a77839a19d 100644 --- a/modules/rostests/apitests/ntdll/NtSetValueKey.c +++ b/modules/rostests/apitests/ntdll/NtSetValueKey.c @@ -5,14 +5,7 @@ * PROGRAMMER: Thomas Faber */ -#include - -#include -#define WIN32_NO_STATUS -#include -#include -#include -#include +#include "precomp.h" START_TEST(NtSetValueKey) { diff --git a/modules/rostests/apitests/ntdll/NtWriteFile.c b/modules/rostests/apitests/ntdll/NtWriteFile.c index c6f13c7b39a..f9f1e702368 100644 --- a/modules/rostests/apitests/ntdll/NtWriteFile.c +++ b/modules/rostests/apitests/ntdll/NtWriteFile.c @@ -5,16 +5,7 @@ * PROGRAMMER: Thomas Faber */ -#include - -#define WIN32_NO_STATUS -#include -#include -#include -#include -#include -#include -#include +#include "precomp.h" static BOOL diff --git a/modules/rostests/apitests/ntdll/RtlAllocateHeap.c b/modules/rostests/apitests/ntdll/RtlAllocateHeap.c index 829983cd395..77e72f33706 100644 --- a/modules/rostests/apitests/ntdll/RtlAllocateHeap.c +++ b/modules/rostests/apitests/ntdll/RtlAllocateHeap.c @@ -5,10 +5,7 @@ * PROGRAMMER: Pierre Schweitzer */ -#include - -#define WIN32_NO_STATUS -#include +#include "precomp.h" PVOID Buffers[0x100]; diff --git a/modules/rostests/apitests/ntdll/RtlBitmap.c b/modules/rostests/apitests/ntdll/RtlBitmap.c index 99ff3a9806a..82a2eff3ac5 100644 --- a/modules/rostests/apitests/ntdll/RtlBitmap.c +++ b/modules/rostests/apitests/ntdll/RtlBitmap.c @@ -1,9 +1,5 @@ -#include - -#define WIN32_NO_STATUS -#include -#include +#include "precomp.h" static PVOID diff --git a/modules/rostests/apitests/ntdll/RtlCopyMappedMemory.c b/modules/rostests/apitests/ntdll/RtlCopyMappedMemory.c index 5a8f3be13e1..d6c3149096e 100644 --- a/modules/rostests/apitests/ntdll/RtlCopyMappedMemory.c +++ b/modules/rostests/apitests/ntdll/RtlCopyMappedMemory.c @@ -5,10 +5,7 @@ * PROGRAMMERS: Thomas Faber */ -#include - -#define WIN32_NO_STATUS -#include +#include "precomp.h" START_TEST(RtlCopyMappedMemory) { diff --git a/modules/rostests/apitests/ntdll/RtlDeleteAce.c b/modules/rostests/apitests/ntdll/RtlDeleteAce.c index fbf4313680b..4c4aaf58cdb 100644 --- a/modules/rostests/apitests/ntdll/RtlDeleteAce.c +++ b/modules/rostests/apitests/ntdll/RtlDeleteAce.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Thomas Faber */ -#include -#include -#include +#include "precomp.h" static PVOID diff --git a/modules/rostests/apitests/ntdll/RtlDetermineDosPathNameType.c b/modules/rostests/apitests/ntdll/RtlDetermineDosPathNameType.c index 7edc7d12f9b..3f99a38a9bd 100644 --- a/modules/rostests/apitests/ntdll/RtlDetermineDosPathNameType.c +++ b/modules/rostests/apitests/ntdll/RtlDetermineDosPathNameType.c @@ -5,11 +5,7 @@ * PROGRAMMER: Thomas Faber */ -#include - -#define WIN32_NO_STATUS -#include -#include +#include "precomp.h" /* ULONG diff --git a/modules/rostests/apitests/ntdll/RtlDoesFileExists.c b/modules/rostests/apitests/ntdll/RtlDoesFileExists.c index 155e8da8708..d113ccbea23 100644 --- a/modules/rostests/apitests/ntdll/RtlDoesFileExists.c +++ b/modules/rostests/apitests/ntdll/RtlDoesFileExists.c @@ -5,11 +5,7 @@ * PROGRAMMER: Thomas Faber */ -#include - -#define WIN32_NO_STATUS -#include -#include +#include "precomp.h" #define ok_bool_file(value, expected, file) do { \ if (expected) \ diff --git a/modules/rostests/apitests/ntdll/RtlDosApplyFileIsolationRedirection_Ustr.c b/modules/rostests/apitests/ntdll/RtlDosApplyFileIsolationRedirection_Ustr.c index 9a77f042963..9b9f15955b2 100644 --- a/modules/rostests/apitests/ntdll/RtlDosApplyFileIsolationRedirection_Ustr.c +++ b/modules/rostests/apitests/ntdll/RtlDosApplyFileIsolationRedirection_Ustr.c @@ -5,10 +5,7 @@ * PROGRAMMER: Giannis Adamopoulos */ -#include - -#define WIN32_NO_STATUS -#include +#include "precomp.h" #define ok_eq_hex(value, expected) ok((value) == (expected), #value " = 0x%lx, expected 0x%lx\n", value, expected) #define ok_eq_pointer(value, expected) ok((value) == (expected), #value " = %p, expected %p\n", value, expected) diff --git a/modules/rostests/apitests/ntdll/RtlDosPathNameToNtPathName_U.c b/modules/rostests/apitests/ntdll/RtlDosPathNameToNtPathName_U.c index 63dbcf2a371..3b0dcb24c10 100644 --- a/modules/rostests/apitests/ntdll/RtlDosPathNameToNtPathName_U.c +++ b/modules/rostests/apitests/ntdll/RtlDosPathNameToNtPathName_U.c @@ -39,10 +39,7 @@ # include # include #else /* Compile for ReactOS or wine */ -# include -# define WIN32_NO_STATUS -# include -# include +# include "precomp.h" #endif /* diff --git a/modules/rostests/apitests/ntdll/RtlDosSearchPath_U.c b/modules/rostests/apitests/ntdll/RtlDosSearchPath_U.c index d785ac1a35b..72618776998 100644 --- a/modules/rostests/apitests/ntdll/RtlDosSearchPath_U.c +++ b/modules/rostests/apitests/ntdll/RtlDosSearchPath_U.c @@ -5,11 +5,7 @@ * PROGRAMMER: Thomas Faber */ -#include - -#define WIN32_NO_STATUS -#include -#include +#include "precomp.h" /* ULONG diff --git a/modules/rostests/apitests/ntdll/RtlDosSearchPath_Ustr.c b/modules/rostests/apitests/ntdll/RtlDosSearchPath_Ustr.c index df66d13db99..6a4de4ee8fe 100644 --- a/modules/rostests/apitests/ntdll/RtlDosSearchPath_Ustr.c +++ b/modules/rostests/apitests/ntdll/RtlDosSearchPath_Ustr.c @@ -5,10 +5,7 @@ * PROGRAMMER: Thomas Faber */ -#include - -#define WIN32_NO_STATUS -#include +#include "precomp.h" /* NTSTATUS diff --git a/modules/rostests/apitests/ntdll/RtlFirstFreeAce.c b/modules/rostests/apitests/ntdll/RtlFirstFreeAce.c index ebe12e06d0d..0022945e416 100644 --- a/modules/rostests/apitests/ntdll/RtlFirstFreeAce.c +++ b/modules/rostests/apitests/ntdll/RtlFirstFreeAce.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Thomas Faber */ -#include -#include -#include +#include "precomp.h" static PVOID diff --git a/modules/rostests/apitests/ntdll/RtlGenerate8dot3Name.c b/modules/rostests/apitests/ntdll/RtlGenerate8dot3Name.c index f13ebb75f96..0c1da43bc98 100644 --- a/modules/rostests/apitests/ntdll/RtlGenerate8dot3Name.c +++ b/modules/rostests/apitests/ntdll/RtlGenerate8dot3Name.c @@ -5,11 +5,7 @@ * PROGRAMMER: Pierre Schweitzer */ -#include - -#define WIN32_NO_STATUS -#include -#include +#include "precomp.h" NTSYSAPI VOID diff --git a/modules/rostests/apitests/ntdll/RtlGetFullPathName_U.c b/modules/rostests/apitests/ntdll/RtlGetFullPathName_U.c index f6f8e305a39..fd8c8d84036 100644 --- a/modules/rostests/apitests/ntdll/RtlGetFullPathName_U.c +++ b/modules/rostests/apitests/ntdll/RtlGetFullPathName_U.c @@ -5,10 +5,7 @@ * PROGRAMMER: Thomas Faber */ -#include - -#define WIN32_NO_STATUS -#include +#include "precomp.h" /* ULONG diff --git a/modules/rostests/apitests/ntdll/RtlGetFullPathName_Ustr.c b/modules/rostests/apitests/ntdll/RtlGetFullPathName_Ustr.c index bb3f4351de5..72b7423b889 100644 --- a/modules/rostests/apitests/ntdll/RtlGetFullPathName_Ustr.c +++ b/modules/rostests/apitests/ntdll/RtlGetFullPathName_Ustr.c @@ -5,10 +5,7 @@ * PROGRAMMER: Thomas Faber */ -#include - -#define WIN32_NO_STATUS -#include +#include "precomp.h" /* ULONG diff --git a/modules/rostests/apitests/ntdll/RtlGetFullPathName_UstrEx.c b/modules/rostests/apitests/ntdll/RtlGetFullPathName_UstrEx.c index 41d08508386..b96d7485aca 100644 --- a/modules/rostests/apitests/ntdll/RtlGetFullPathName_UstrEx.c +++ b/modules/rostests/apitests/ntdll/RtlGetFullPathName_UstrEx.c @@ -5,10 +5,7 @@ * PROGRAMMER: Thomas Faber */ -#include - -#define WIN32_NO_STATUS -#include +#include "precomp.h" /* NTSTATUS diff --git a/modules/rostests/apitests/ntdll/RtlGetLengthWithoutTrailingPathSeperators.c b/modules/rostests/apitests/ntdll/RtlGetLengthWithoutTrailingPathSeperators.c index f336c940f77..189ccdb90ae 100644 --- a/modules/rostests/apitests/ntdll/RtlGetLengthWithoutTrailingPathSeperators.c +++ b/modules/rostests/apitests/ntdll/RtlGetLengthWithoutTrailingPathSeperators.c @@ -5,9 +5,7 @@ * PROGRAMMER: David Quintana */ -#define WIN32_NO_STATUS -#include -#include +#include "precomp.h" #define MakeTestEntry_Success(str, expect) \ { str, expect, STATUS_SUCCESS, __LINE__ } diff --git a/modules/rostests/apitests/ntdll/RtlGetLongestNtPathLength.c b/modules/rostests/apitests/ntdll/RtlGetLongestNtPathLength.c index d80f1c8fa48..3f6b81f7e14 100644 --- a/modules/rostests/apitests/ntdll/RtlGetLongestNtPathLength.c +++ b/modules/rostests/apitests/ntdll/RtlGetLongestNtPathLength.c @@ -5,10 +5,7 @@ * PROGRAMMER: Thomas Faber */ -#include - -#define WIN32_NO_STATUS -#include +#include "precomp.h" /* ULONG diff --git a/modules/rostests/apitests/ntdll/RtlHandle.c b/modules/rostests/apitests/ntdll/RtlHandle.c index 74b4cef335b..2e598fd9d9b 100644 --- a/modules/rostests/apitests/ntdll/RtlHandle.c +++ b/modules/rostests/apitests/ntdll/RtlHandle.c @@ -5,11 +5,7 @@ * PROGRAMMER: Thomas Faber */ -#include - -#define WIN32_NO_STATUS -#include -#include +#include "precomp.h" typedef struct _TEST_HANDLE_ENTRY { diff --git a/modules/rostests/apitests/ntdll/RtlImageRvaToVa.c b/modules/rostests/apitests/ntdll/RtlImageRvaToVa.c index 2671f86b46e..9d15c58e717 100644 --- a/modules/rostests/apitests/ntdll/RtlImageRvaToVa.c +++ b/modules/rostests/apitests/ntdll/RtlImageRvaToVa.c @@ -5,9 +5,7 @@ * PROGRAMMERS: Thomas Faber */ -#include -#include -#include +#include "precomp.h" static PVOID diff --git a/modules/rostests/apitests/ntdll/RtlInitializeBitMap.c b/modules/rostests/apitests/ntdll/RtlInitializeBitMap.c index 2e2ab49c193..6dc1e193a0d 100644 --- a/modules/rostests/apitests/ntdll/RtlInitializeBitMap.c +++ b/modules/rostests/apitests/ntdll/RtlInitializeBitMap.c @@ -5,10 +5,7 @@ * PROGRAMMERS: Timo Kreuzer */ -#include - -#define WIN32_NO_STATUS -#include +#include "precomp.h" void Test_RtlInitializeBitmap() { diff --git a/modules/rostests/apitests/ntdll/RtlIsNameLegalDOS8Dot3.c b/modules/rostests/apitests/ntdll/RtlIsNameLegalDOS8Dot3.c index 40a52c32e52..ab7f51bb829 100644 --- a/modules/rostests/apitests/ntdll/RtlIsNameLegalDOS8Dot3.c +++ b/modules/rostests/apitests/ntdll/RtlIsNameLegalDOS8Dot3.c @@ -5,10 +5,7 @@ * PROGRAMMER: Thomas Faber */ -#include - -#define WIN32_NO_STATUS -#include +#include "precomp.h" START_TEST(RtlIsNameLegalDOS8Dot3) { diff --git a/modules/rostests/apitests/ntdll/RtlMemoryStream.c b/modules/rostests/apitests/ntdll/RtlMemoryStream.c index 5df223052c7..0cde75edb49 100644 --- a/modules/rostests/apitests/ntdll/RtlMemoryStream.c +++ b/modules/rostests/apitests/ntdll/RtlMemoryStream.c @@ -5,10 +5,9 @@ * PROGRAMMER: David Quintana */ -#define COBJMACROS +#include "precomp.h" -#include -#include +#define COBJMACROS #include #include diff --git a/modules/rostests/apitests/ntdll/RtlNtPathNameToDosPathName.c b/modules/rostests/apitests/ntdll/RtlNtPathNameToDosPathName.c index 7cf99f5ea30..311dfd8d535 100644 --- a/modules/rostests/apitests/ntdll/RtlNtPathNameToDosPathName.c +++ b/modules/rostests/apitests/ntdll/RtlNtPathNameToDosPathName.c @@ -5,10 +5,7 @@ * PROGRAMMER: Mark Jansen */ -#include - -#define WIN32_NO_STATUS -#include +#include "precomp.h" NTSTATUS (NTAPI *pRtlNtPathNameToDosPathName)(ULONG Flags, PRTL_UNICODE_STRING_BUFFER Path, PULONG Type, PULONG Unknown4); diff --git a/modules/rostests/apitests/ntdll/RtlReAllocateHeap.c b/modules/rostests/apitests/ntdll/RtlReAllocateHeap.c index 23225cc0a48..311b01b791d 100644 --- a/modules/rostests/apitests/ntdll/RtlReAllocateHeap.c +++ b/modules/rostests/apitests/ntdll/RtlReAllocateHeap.c @@ -5,8 +5,7 @@ * PROGRAMMERS: Thomas Faber */ -#include -#include +#include "precomp.h" static BOOLEAN diff --git a/modules/rostests/apitests/ntdll/RtlUnicodeStringToAnsiString.c b/modules/rostests/apitests/ntdll/RtlUnicodeStringToAnsiString.c index a5172995689..3ed5dd6d406 100644 --- a/modules/rostests/apitests/ntdll/RtlUnicodeStringToAnsiString.c +++ b/modules/rostests/apitests/ntdll/RtlUnicodeStringToAnsiString.c @@ -5,8 +5,7 @@ * PROGRAMMERS: Pierre Schweitzer */ -#include -#include +#include "precomp.h" START_TEST(RtlUnicodeStringToAnsiString) { diff --git a/modules/rostests/apitests/ntdll/RtlUpcaseUnicodeStringToCountedOemString.c b/modules/rostests/apitests/ntdll/RtlUpcaseUnicodeStringToCountedOemString.c index 0febe21d8ec..645449bae63 100644 --- a/modules/rostests/apitests/ntdll/RtlUpcaseUnicodeStringToCountedOemString.c +++ b/modules/rostests/apitests/ntdll/RtlUpcaseUnicodeStringToCountedOemString.c @@ -5,10 +5,7 @@ * PROGRAMMER: Thomas Faber */ -#include - -#define WIN32_NO_STATUS -#include +#include "precomp.h" START_TEST(RtlUpcaseUnicodeStringToCountedOemString) { diff --git a/modules/rostests/apitests/ntdll/RtlpEnsureBufferSize.c b/modules/rostests/apitests/ntdll/RtlpEnsureBufferSize.c index 116ada95e4d..79bf5ddfb90 100644 --- a/modules/rostests/apitests/ntdll/RtlpEnsureBufferSize.c +++ b/modules/rostests/apitests/ntdll/RtlpEnsureBufferSize.c @@ -5,10 +5,8 @@ * PROGRAMMER: Mark Jansen */ -#include +#include "precomp.h" -#define WIN32_NO_STATUS -#include #include diff --git a/modules/rostests/apitests/ntdll/StackOverflow.c b/modules/rostests/apitests/ntdll/StackOverflow.c index 9cd710753b6..794e2fe0ffb 100644 --- a/modules/rostests/apitests/ntdll/StackOverflow.c +++ b/modules/rostests/apitests/ntdll/StackOverflow.c @@ -5,11 +5,7 @@ * PROGRAMMER: Jérôme Gardou */ -#define WIN32_NO_STATUS -#include -#include -#include -#include +#include "precomp.h" static int iteration = 0; static PVOID StackAllocationBase; diff --git a/modules/rostests/apitests/ntdll/SystemInfo.c b/modules/rostests/apitests/ntdll/SystemInfo.c index 7ba1158f98b..0d9613d1155 100644 --- a/modules/rostests/apitests/ntdll/SystemInfo.c +++ b/modules/rostests/apitests/ntdll/SystemInfo.c @@ -6,12 +6,7 @@ * Thomas Faber */ -#include - -#define WIN32_NO_STATUS -#include -#include -#include +#include "precomp.h" #define ntv6(x) (LOBYTE(LOWORD(GetVersion())) >= 6 ? (x) : 0) diff --git a/modules/rostests/apitests/ntdll/Timer.c b/modules/rostests/apitests/ntdll/Timer.c index 0152c44b8c7..23fe697a764 100644 --- a/modules/rostests/apitests/ntdll/Timer.c +++ b/modules/rostests/apitests/ntdll/Timer.c @@ -5,13 +5,7 @@ * PROGRAMMER: Aleksandar Andrejevic */ -#include - -#define WIN32_NO_STATUS -#include -#include - -#include +#include "precomp.h" START_TEST(TimerResolution) { diff --git a/modules/rostests/apitests/ntdll/precomp.h b/modules/rostests/apitests/ntdll/precomp.h new file mode 100644 index 00000000000..1552223a0b7 --- /dev/null +++ b/modules/rostests/apitests/ntdll/precomp.h @@ -0,0 +1,11 @@ +#ifndef _NTDLL_APITEST_PRECOMP_H_ +#define _NTDLL_APITEST_PRECOMP_H_ + +#include +#include +#define WIN32_NO_STATUS +#include +#include +#include + +#endif /* _NTDLL_APITEST_PRECOMP_H_ */