[ros-diffs] [akhaldi] 53234: [SMDLL] * Include NDK headers on-demand. * Introduce a PCH.

akhaldi at svn.reactos.org akhaldi at svn.reactos.org
Sun Aug 14 17:17:03 UTC 2011


Author: akhaldi
Date: Sun Aug 14 17:17:02 2011
New Revision: 53234

URL: http://svn.reactos.org/svn/reactos?rev=53234&view=rev
Log:
[SMDLL]
* Include NDK headers on-demand.
* Introduce a PCH.

Added:
    trunk/reactos/dll/win32/smdll/precomp.h   (with props)
Modified:
    trunk/reactos/dll/win32/smdll/CMakeLists.txt
    trunk/reactos/dll/win32/smdll/dllmain.c
    trunk/reactos/dll/win32/smdll/query.c

Modified: trunk/reactos/dll/win32/smdll/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/smdll/CMakeLists.txt?rev=53234&r1=53233&r2=53234&view=diff
==============================================================================
--- trunk/reactos/dll/win32/smdll/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/smdll/CMakeLists.txt [iso-8859-1] Sun Aug 14 17:17:02 2011
@@ -14,6 +14,7 @@
 target_link_libraries(smdll smlib)
 set_entrypoint(smdll DllMainCRTStartup 12)
 add_importlibs(smdll ntdll)
+add_pch(smdll precomp.h)
 add_dependencies(smdll psdk)
 add_cd_file(TARGET smdll DESTINATION reactos/system32 FOR all)
 add_importlib_target(smdll.spec)

Modified: trunk/reactos/dll/win32/smdll/dllmain.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/smdll/dllmain.c?rev=53234&r1=53233&r2=53234&view=diff
==============================================================================
--- trunk/reactos/dll/win32/smdll/dllmain.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/smdll/dllmain.c [iso-8859-1] Sun Aug 14 17:17:02 2011
@@ -6,7 +6,7 @@
  * PURPOSE:         SM Helper Library
  */
 
-#include <windows.h>
+#include <precomp.h>
 
 BOOL WINAPI DllMainCRTStartup(HANDLE hinstDll, DWORD fdwReason, LPVOID fImpLoad)
 {

Added: trunk/reactos/dll/win32/smdll/precomp.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/smdll/precomp.h?rev=53234&view=auto
==============================================================================
--- trunk/reactos/dll/win32/smdll/precomp.h (added)
+++ trunk/reactos/dll/win32/smdll/precomp.h [iso-8859-1] Sun Aug 14 17:17:02 2011
@@ -1,0 +1,6 @@
+#define WIN32_NO_STATUS
+#include <windows.h>
+#define NTOS_MODE_USER
+#include <ndk/lpctypes.h>
+#include <ndk/lpcfuncs.h>
+#include <sm/helper.h>

Propchange: trunk/reactos/dll/win32/smdll/precomp.h
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: trunk/reactos/dll/win32/smdll/query.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/smdll/query.c?rev=53234&r1=53233&r2=53234&view=diff
==============================================================================
--- trunk/reactos/dll/win32/smdll/query.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/smdll/query.c [iso-8859-1] Sun Aug 14 17:17:02 2011
@@ -5,11 +5,8 @@
  * FILE:            lib/smdll/query.c
  * PURPOSE:         Call SM API SM_API_QUERY_INFORMATION (not in NT)
  */
-#define WIN32_NO_STATUS
-#include <windows.h>
-#define NTOS_MODE_USER
-#include <ndk/ntndk.h>
-#include <sm/helper.h>
+
+#include <precomp.h>
 
 #define NDEBUG
 #include <debug.h>




More information about the Ros-diffs mailing list