[ATL_APITEST] Add a PCH.
authorAmine Khaldi <amine.khaldi@reactos.org>
Thu, 21 Dec 2017 12:31:24 +0000 (13:31 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Thu, 21 Dec 2017 12:31:24 +0000 (13:31 +0100)
modules/rostests/apitests/atl/CComBSTR.cpp
modules/rostests/apitests/atl/CComHeapPtr.cpp
modules/rostests/apitests/atl/CComVariant.cpp
modules/rostests/apitests/atl/CMakeLists.txt
modules/rostests/apitests/atl/precomp.h [new file with mode: 0644]

index e0ad4ce..0a10292 100644 (file)
@@ -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
index d18a75f..30fb99a 100644 (file)
@@ -7,7 +7,6 @@
 
 #include <apitest.h>
 #include <atlbase.h>
-#include <atlcom.h>
 
 static PDWORD test_Alloc(DWORD value)
 {
index 8a24a00..32df6f2 100644 (file)
@@ -11,7 +11,6 @@
 
 #include <apitest.h>
 #include <atlbase.h>
-#include <atlcom.h>
 
 void expect_bool_imp(const CComVariant& ccv, bool value)
 {
index d5428d9..9c9ed6d 100644 (file)
@@ -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 (file)
index 0000000..7feb40d
--- /dev/null
@@ -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_ */