[TAPI32]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 27 Dec 2013 14:01:01 +0000 (14:01 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 27 Dec 2013 14:01:01 +0000 (14:01 +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=61447

reactos/dll/win32/tapi32/assisted.c
reactos/dll/win32/tapi32/internal.c
reactos/dll/win32/tapi32/line.c
reactos/dll/win32/tapi32/phone.c
reactos/dll/win32/tapi32/precomp.h [new file with mode: 0644]

index 3dba506..960081e 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 "wine/port.h"
-
-//#include <stdarg.h>
-#include <stdio.h>
-#include <windef.h>
-#include <winbase.h>
-//#include "wingdi.h"
-#include <winreg.h>
-#include <objbase.h>
-#include <tapi.h>
-#include <wine/unicode.h>
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(tapi);
+#include "precomp.h"
 
 /***********************************************************************
  *      tapiGetLocationInfoW (TAPI32.@)
index 946d433..c94d8be 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-//#include <string.h>
-//#include <stdlib.h>
-//#include <stdarg.h>
-//#include <stdio.h>
-//#include "windef.h"
-//#include "winbase.h"
-//#include "wingdi.h"
-//#include "winreg.h"
-//#include "winnls.h"
-//#include "winerror.h"
-//#include "objbase.h"
-//#include "tapi.h"
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(tapi);
+#include "precomp.h"
 
 /***********************************************************************
  *             internalConfig (TAPI32.@)
index a4df21e..4a14110 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 <string.h>
-//#include <stdlib.h>
-#include <stdarg.h>
-//#include <stdio.h>
-#include <windef.h>
-#include <winbase.h>
-//#include "wingdi.h"
-#include <winreg.h>
-#include <winnls.h>
-//#include "winerror.h"
-#include <objbase.h>
-#include <tapi.h>
-#include <wine/debug.h>
-#include <wine/unicode.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(tapi);
+#include "precomp.h"
 
 /* registry keys */
 static const char szCountrylistKey[] =
index 5a8d8d4..c03c3cc 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 <stdarg.h>
-
-#include <windef.h>
-#include <winbase.h>
-#include <objbase.h>
-#include <tapi.h>
-#include <wine/debug.h>
+#include "precomp.h"
 
 /*
  * Additional TSPI functions:
@@ -38,7 +28,6 @@
  * - TSPI_ProviderEnumDevices
  * - TSPI_ProviderConfig
 */
-WINE_DEFAULT_DEBUG_CHANNEL(tapi);
 
 /***********************************************************************
  *             phoneClose (TAPI32.@)
diff --git a/reactos/dll/win32/tapi32/precomp.h b/reactos/dll/win32/tapi32/precomp.h
new file mode 100644 (file)
index 0000000..297abf3
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef _TAPI32_PCH_
+#define _TAPI32_PCH_
+
+#include <config.h>
+
+#include <stdarg.h>
+
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+
+#include <windef.h>
+#include <winbase.h>
+#include <winreg.h>
+#include <objbase.h>
+#include <tapi.h>
+
+#include <wine/unicode.h>
+#include <wine/debug.h>
+
+WINE_DEFAULT_DEBUG_CHANNEL(tapi);
+
+#endif /* _TAPI32_PCH_ */