https://git.reactos.org/?p=reactos.git;a=commitdiff;h=823270e608ab7a890341d…
commit 823270e608ab7a890341d984297244cf0d50acaf
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Thu Dec 21 13:31:24 2017 +0100
[ATL_APITEST] Add a PCH.
---
modules/rostests/apitests/atl/CComBSTR.cpp | 2 +-
modules/rostests/apitests/atl/CComHeapPtr.cpp | 1 -
modules/rostests/apitests/atl/CComVariant.cpp | 1 -
modules/rostests/apitests/atl/CMakeLists.txt | 9 +++++++--
modules/rostests/apitests/atl/precomp.h | 14 ++++++++++++++
5 files changed, 22 insertions(+), 5 deletions(-)
diff --git a/modules/rostests/apitests/atl/CComBSTR.cpp
b/modules/rostests/apitests/atl/CComBSTR.cpp
index e0ad4ce861..0a10292c38 100644
--- a/modules/rostests/apitests/atl/CComBSTR.cpp
+++ b/modules/rostests/apitests/atl/CComBSTR.cpp
@@ -7,7 +7,7 @@
#include <apitest.h>
#include <atlbase.h>
-#include <atlcom.h>
+
#include "resource.h"
#define verify_str (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 :
verify_str_imp
diff --git a/modules/rostests/apitests/atl/CComHeapPtr.cpp
b/modules/rostests/apitests/atl/CComHeapPtr.cpp
index d18a75fae2..30fb99abd0 100644
--- a/modules/rostests/apitests/atl/CComHeapPtr.cpp
+++ b/modules/rostests/apitests/atl/CComHeapPtr.cpp
@@ -7,7 +7,6 @@
#include <apitest.h>
#include <atlbase.h>
-#include <atlcom.h>
static PDWORD test_Alloc(DWORD value)
{
diff --git a/modules/rostests/apitests/atl/CComVariant.cpp
b/modules/rostests/apitests/atl/CComVariant.cpp
index 8a24a00c4c..32df6f253b 100644
--- a/modules/rostests/apitests/atl/CComVariant.cpp
+++ b/modules/rostests/apitests/atl/CComVariant.cpp
@@ -11,7 +11,6 @@
#include <apitest.h>
#include <atlbase.h>
-#include <atlcom.h>
void expect_bool_imp(const CComVariant& ccv, bool value)
{
diff --git a/modules/rostests/apitests/atl/CMakeLists.txt
b/modules/rostests/apitests/atl/CMakeLists.txt
index d5428d9fd2..9c9ed6ddec 100644
--- a/modules/rostests/apitests/atl/CMakeLists.txt
+++ b/modules/rostests/apitests/atl/CMakeLists.txt
@@ -4,20 +4,25 @@ set_cpp(WITH_RUNTIME WITH_EXCEPTIONS)
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/atl)
-add_executable(atl_apitest
+list(APPEND SOURCE
atltypes.cpp
CComBSTR.cpp
CComHeapPtr.cpp
- CComVariant.cpp
CImage.cpp
CRegKey.cpp
CSimpleArray.cpp
CSimpleMap.cpp
CString.cpp
+ precomp.h)
+
+add_executable(atl_apitest
+ ${SOURCE}
+ CComVariant.cpp
testlist.c
atl_apitest.rc)
target_link_libraries(atl_apitest wine atlnew uuid)
set_module_type(atl_apitest win32cui)
add_importlibs(atl_apitest rpcrt4 ole32 oleaut32 msimg32 gdi32 advapi32 user32 msvcrt
kernel32 ntdll)
+add_pch(atl_apitest precomp.h SOURCE)
add_rostests_file(TARGET atl_apitest)
diff --git a/modules/rostests/apitests/atl/precomp.h
b/modules/rostests/apitests/atl/precomp.h
new file mode 100644
index 0000000000..7feb40d3a6
--- /dev/null
+++ b/modules/rostests/apitests/atl/precomp.h
@@ -0,0 +1,14 @@
+#ifndef _ATL_APITEST_PRECOMP_H_
+#define _ATL_APITEST_PRECOMP_H_
+
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+
+#include <apitest.h>
+#include <atlbase.h>
+#include <atlsimpcoll.h>
+
+#include "resource.h"
+
+#endif /* _ATL_APITEST_PRECOMP_H_ */