From: Amine Khaldi Date: Tue, 12 Dec 2017 12:01:03 +0000 (+0100) Subject: [COM_APITEST] Improve the existing PCH and make use of it. X-Git-Tag: 0.4.9-dev~683 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=3543c43252fd6a3db0896561ae1fddb02393893b [COM_APITEST] Improve the existing PCH and make use of it. --- diff --git a/modules/rostests/apitests/com/CMakeLists.txt b/modules/rostests/apitests/com/CMakeLists.txt index 1bd1adc47d9..76e6efef8c7 100644 --- a/modules/rostests/apitests/com/CMakeLists.txt +++ b/modules/rostests/apitests/com/CMakeLists.txt @@ -10,10 +10,11 @@ list(APPEND SOURCE shdocvw.c shell32.c com_apitest.c - testlist.c) + com_apitest.h) -add_executable(com_apitest ${SOURCE}) +add_executable(com_apitest ${SOURCE} testlist.c) target_link_libraries(com_apitest wine uuid) set_module_type(com_apitest win32cui) add_importlibs(com_apitest advapi32 ole32 shlwapi shell32 msvcrt kernel32 ntdll) +add_pch(com_apitest com_apitest.h SOURCE) add_rostests_file(TARGET com_apitest) diff --git a/modules/rostests/apitests/com/com_apitest.c b/modules/rostests/apitests/com/com_apitest.c index 0f9e5924f57..7f72b0b8352 100644 --- a/modules/rostests/apitests/com/com_apitest.c +++ b/modules/rostests/apitests/com/com_apitest.c @@ -7,6 +7,12 @@ #include "com_apitest.h" +#include +#include +#include +#include +#include + #define NDEBUG #include diff --git a/modules/rostests/apitests/com/com_apitest.h b/modules/rostests/apitests/com/com_apitest.h index dd26a93dff6..f841e581217 100644 --- a/modules/rostests/apitests/com/com_apitest.h +++ b/modules/rostests/apitests/com/com_apitest.h @@ -5,7 +5,8 @@ * PROGRAMMER: Thomas Faber */ -#pragma once +#ifndef _COM_APITEST_H_ +#define _COM_APITEST_H_ /* Define this if you're adding new classes - the test will auto-generate the * interface table entries for you ;) */ @@ -17,33 +18,23 @@ #define COBJMACROS #define WIN32_NO_STATUS + #include + #include #include #include #include -#include -#include #include #include #include -#include #include #include -#include -#include -#include #include -#include #include -#include -#include -#include #include #include -#include #include -#include #include typedef IUnknown *PUNKNOWN; @@ -202,3 +193,5 @@ DEFINE_GUID(IID_DFConstraint, 0x403df050, 0x23bd, 0x11d2, 0x93, 0x9 DEFINE_GUID(IID_CDefView, 0x4434ff80, 0xef4c, 0x11ce, 0xae, 0x65, 0x08, 0x00, 0x2b, 0xe2, 0x12, 0x62); DEFINE_GUID(IID_FolderItems2, 0xc94f0ad0, 0xf363, 0x11d2, 0xa3, 0x27, 0x00, 0xc0, 0x4f, 0x8e, 0xec, 0x7f); DEFINE_GUID(IID_FolderItems3, 0xeaa7c309, 0xbbec, 0x49d5, 0x82, 0x1d, 0x64, 0xd9, 0x66, 0xcb, 0x66, 0x7f); + +#endif /* _COM_APITEST_H_ */