[SCHANNEL]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 27 Dec 2013 10:31:09 +0000 (10:31 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 27 Dec 2013 10:31:09 +0000 (10:31 +0000)
* Create a main header and move some inclusions to it.
* Set the default debugging channel globally through the main header.
* Remove inclusions and definitions that already exist in the main header.
CORE-7716

svn path=/trunk/; revision=61440

reactos/dll/win32/schannel/lsamode.c
reactos/dll/win32/schannel/precomp.h [new file with mode: 0644]
reactos/dll/win32/schannel/schannel_main.c
reactos/dll/win32/schannel/usermode.c

index 7429b2c..1d691f6 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
+#include "precomp.h"
 
 
-#include <ntstatus.h>
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-#include <windef.h>
-#include <winbase.h>
-#include <sspi.h>
-#include <ntsecapi.h>
-#include <ntsecpkg.h>
 #include <schannel.h>
 
 #include <schannel.h>
 
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(schannel);
-
 /***********************************************************************
  *              SpGetInfoUnified
  */
 /***********************************************************************
  *              SpGetInfoUnified
  */
diff --git a/reactos/dll/win32/schannel/precomp.h b/reactos/dll/win32/schannel/precomp.h
new file mode 100644 (file)
index 0000000..6aecb11
--- /dev/null
@@ -0,0 +1,19 @@
+#ifndef _SCHANNEL_PCH_
+#define _SCHANNEL_PCH_
+
+#include <stdarg.h>
+
+#include <ntstatus.h>
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+#include <windef.h>
+#include <winbase.h>
+#include <sspi.h>
+#include <ntsecapi.h>
+#include <ntsecpkg.h>
+
+#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(schannel);
+
+#endif /* _SCHANNEL_PCH_ */
index 0fb573d..f309d66 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-
-#include <stdarg.h>
-
-#include <windef.h>
-#include <winbase.h>
-
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(schannel);
+#include "precomp.h"
 
 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
 {
 
 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
 {
index 3a4da26..2efa3f3 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
-
-#include <ntstatus.h>
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-#include <windef.h>
-#include <winbase.h>
-#include <sspi.h>
-#include <ntsecapi.h>
-#include <ntsecpkg.h>
-
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(schannel);
+#include "precomp.h"
 
 static SECPKG_USER_FUNCTION_TABLE secPkgUserTables[2] =
 { {
 
 static SECPKG_USER_FUNCTION_TABLE secPkgUserTables[2] =
 { {