https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2d36be496309bf8551f120...
commit 2d36be496309bf8551f120c674f73f987f88e5c3 Author: Andreas Maier staubim@quantentunnel.de AuthorDate: Sat Mar 28 17:13:57 2020 +0100 Commit: GitHub noreply@github.com CommitDate: Sat Mar 28 17:13:57 2020 +0100
[MSV1_0] use precompiled headers (#2475) --- dll/win32/msv1_0/CMakeLists.txt | 5 +++-- dll/win32/msv1_0/msv1_0.c | 2 +- dll/win32/msv1_0/msv1_0.h | 31 ------------------------------- dll/win32/msv1_0/precomp.h | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 40 insertions(+), 34 deletions(-)
diff --git a/dll/win32/msv1_0/CMakeLists.txt b/dll/win32/msv1_0/CMakeLists.txt index 6e2e41bb9d3..b4e56cd2475 100644 --- a/dll/win32/msv1_0/CMakeLists.txt +++ b/dll/win32/msv1_0/CMakeLists.txt @@ -3,14 +3,15 @@ spec2def(msv1_0.dll msv1_0.spec)
list(APPEND SOURCE msv1_0.c - msv1_0.rc + precomp.h ${CMAKE_CURRENT_BINARY_DIR}/msv1_0_stubs.c ${CMAKE_CURRENT_BINARY_DIR}/msv1_0.def)
-add_library(msv1_0 MODULE ${SOURCE}) +add_library(msv1_0 MODULE ${SOURCE} msv1_0.rc) set_module_type(msv1_0 win32dll UNICODE ENTRYPOINT 0) target_link_libraries(msv1_0 wine ${PSEH_LIB}) add_delay_importlibs(msv1_0 samsrv lsasrv) add_importlibs(msv1_0 advapi32 kernel32 ntdll) add_dependencies(msv1_0 psdk) +add_pch(msv1_0 precomp.h SOURCE) add_cd_file(TARGET msv1_0 DESTINATION reactos/system32 FOR all) diff --git a/dll/win32/msv1_0/msv1_0.c b/dll/win32/msv1_0/msv1_0.c index a7e5c2b5a6c..6994940290c 100644 --- a/dll/win32/msv1_0/msv1_0.c +++ b/dll/win32/msv1_0/msv1_0.c @@ -8,7 +8,7 @@
/* INCLUDES ****************************************************************/
-#include "msv1_0.h" +#include "precomp.h"
WINE_DEFAULT_DEBUG_CHANNEL(msv1_0);
diff --git a/dll/win32/msv1_0/msv1_0.h b/dll/win32/msv1_0/msv1_0.h index 773702fdec1..1b656bca4f1 100644 --- a/dll/win32/msv1_0/msv1_0.h +++ b/dll/win32/msv1_0/msv1_0.h @@ -6,37 +6,6 @@ * COPYRIGHT: Copyright 2013 Eric Kohl */
-#define WIN32_NO_STATUS -#define _INC_WINDOWS -#define COM_NO_WINDOWS_H -#include <stdarg.h> -#include <windef.h> -#include <winbase.h> -#include <winreg.h> -#define NTOS_MODE_USER -#include <ndk/cmfuncs.h> -#include <ndk/kefuncs.h> -#include <ndk/lpctypes.h> -#include <ndk/lpcfuncs.h> -#include <ndk/mmfuncs.h> -#include <ndk/obfuncs.h> -#include <ndk/psfuncs.h> -#include <ndk/rtlfuncs.h> -#include <ndk/setypes.h> -#include <ndk/sefuncs.h> - -#include <sspi.h> -#include <ntsecapi.h> -#include <ntsecpkg.h> -#include <ntsam.h> -#include <ntlsa.h> - -#include <samsrv/samsrv.h> -//#include <lsass/lsasrv.h> - -#include <wine/debug.h> - - #define FIXUP_POINTER(Pointer, Offset) ((Pointer != NULL) ? ((PWSTR)((ULONG_PTR)Pointer + Offset)) : NULL)
diff --git a/dll/win32/msv1_0/precomp.h b/dll/win32/msv1_0/precomp.h new file mode 100644 index 00000000000..c4140240ab3 --- /dev/null +++ b/dll/win32/msv1_0/precomp.h @@ -0,0 +1,36 @@ +#ifndef _MSV1_0_PRECOMP_H_ +#define _MSV1_0_PRECOMP_H_ + +#define WIN32_NO_STATUS +#define _INC_WINDOWS +#define COM_NO_WINDOWS_H +#include <stdarg.h> +#include <windef.h> +#include <winbase.h> +#include <winreg.h> +#define NTOS_MODE_USER +#include <ndk/cmfuncs.h> +#include <ndk/kefuncs.h> +#include <ndk/lpctypes.h> +#include <ndk/lpcfuncs.h> +#include <ndk/mmfuncs.h> +#include <ndk/obfuncs.h> +#include <ndk/psfuncs.h> +#include <ndk/rtlfuncs.h> +#include <ndk/setypes.h> +#include <ndk/sefuncs.h> + +#include <sspi.h> +#include <ntsecapi.h> +#include <ntsecpkg.h> +#include <ntsam.h> +#include <ntlsa.h> + +#include <samsrv/samsrv.h> +//#include <lsass/lsasrv.h> + +#include "msv1_0.h" + +#include <wine/debug.h> + +#endif