[ITSS]
authorAmine Khaldi <amine.khaldi@reactos.org>
Tue, 24 Dec 2013 21:45:30 +0000 (21:45 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Tue, 24 Dec 2013 21:45:30 +0000 (21:45 +0000)
* Create a main header and move some inclusions to it.
* Set the default debugging channel globally through the main header.
CORE-7716

svn path=/trunk/; revision=61385

reactos/dll/win32/itss/chm_lib.c
reactos/dll/win32/itss/itss.c
reactos/dll/win32/itss/lzx.c
reactos/dll/win32/itss/moniker.c
reactos/dll/win32/itss/precomp.h [new file with mode: 0644]
reactos/dll/win32/itss/protocol.c
reactos/dll/win32/itss/storage.c

index 1c14442..d1c7161 100644 (file)
  *                                                                         *
  ***************************************************************************/
 
-#include <config.h>
-#include <wine/port.h>
-
-//#include <stdarg.h>
-//#include <stdio.h>
-//#include <stdlib.h>
-//#include <string.h>
-
-//#include "windef.h"
-//#include "winbase.h"
-#include <wine/unicode.h>
-
-#include "chm_lib.h"
-#include "lzx.h"
+#include "precomp.h"
 
 #define CHM_ACQUIRE_LOCK(a) do {                        \
         EnterCriticalSection(&(a));                     \
index 49658ef..8b1a6c3 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
+#include "precomp.h"
 
-#include <config.h>
-
-#include <stdarg.h>
-//#include <stdio.h>
-
-#define COBJMACROS
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winuser.h"
-//#include "winreg.h"
-#include <ole2.h>
 #include <rpcproxy.h>
-//#include "advpub.h"
-
-//#include "wine/unicode.h"
-#include <wine/debug.h>
-
-#include "itsstor.h"
-
-#include <initguid.h>
-#include <wine/itss.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(itss);
 
 static HRESULT ITSS_create(IUnknown *pUnkOuter, LPVOID *ppObj);
 
index 969e394..68b1e23 100644 (file)
  *
  ***************************************************************************/
 
-#include "lzx.h"
-#include <stdarg.h>
-//#include <stdio.h>
-//#include <stdlib.h>
-//#include <string.h>
-
-#include <windef.h>
-#include <winbase.h>
+#include "precomp.h"
 
 /* sized types */
 typedef unsigned char  UBYTE; /* 8 bits exactly    */
index a9e33d3..86e82de 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-
-#include <config.h>
-
-#include <stdarg.h>
-//#include <stdio.h>
-
-#define COBJMACROS
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winuser.h"
-#include <ole2.h>
-
-#include <wine/itss.h>
-#include <wine/unicode.h>
-#include <wine/debug.h>
-
-#include "itsstor.h"
-
-WINE_DEFAULT_DEBUG_CHANNEL(itss);
+#include "precomp.h"
 
 /*****************************************************************************/
 
diff --git a/reactos/dll/win32/itss/precomp.h b/reactos/dll/win32/itss/precomp.h
new file mode 100644 (file)
index 0000000..441b876
--- /dev/null
@@ -0,0 +1,30 @@
+#ifndef _ITSS_PCH_
+#define _ITSS_PCH_
+
+#include <config.h>
+#include <wine/port.h>
+
+#include <stdarg.h>
+
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+
+#define COBJMACROS
+
+#include <windef.h>
+#include <winbase.h>
+#include <ole2.h>
+#include <initguid.h>
+
+#include <wine/itss.h>
+#include <wine/unicode.h>
+
+#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(itss);
+
+#include "chm_lib.h"
+#include "itsstor.h"
+#include "lzx.h"
+
+#endif /* _ITSS_PCH_ */
index 6426b4c..603e2ae 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
+#include "precomp.h"
 
-#include <stdarg.h>
-
-#define COBJMACROS
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winuser.h"
 #include <winreg.h>
-#include <ole2.h>
 #include <urlmon.h>
 #include <shlwapi.h>
-#include "itsstor.h"
-#include "chm_lib.h"
-
-#include <wine/debug.h>
-#include <wine/unicode.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(itss);
 
 typedef struct {
     IInternetProtocol     IInternetProtocol_iface;
index 08aeeb0..a0336d0 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#define WIN32_NO_STATUS
-#define _INC_WINDOWS
-#define COM_NO_WINDOWS_H
-
-#include <config.h>
-
-#include <stdarg.h>
-//#include <stdio.h>
-
-#define COBJMACROS
-
-#include <windef.h>
-#include <winbase.h>
-//#include "winuser.h"
-#include <ole2.h>
-
-#include "chm_lib.h"
-#include "itsstor.h"
-
-#include <wine/itss.h>
-#include <wine/unicode.h>
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(itss);
+#include "precomp.h"
 
 /************************************************************************/