[TWAIN_32]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 27 Dec 2013 14:08:56 +0000 (14:08 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 27 Dec 2013 14:08:56 +0000 (14:08 +0000)
* Move some inclusions to the main header.
* 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=61448

reactos/dll/win32/twain_32/dsm_ctrl.c
reactos/dll/win32/twain_32/twain32_main.c
reactos/dll/win32/twain_32/twain_i.h

index 76255f6..6a17c6a 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <config.h>
-
-//#include <stdlib.h>
-//#include <stdarg.h>
-//#include <stdio.h>
-
-#define NONAMELESSUNION
-#define NONAMELESSSTRUCT
-//#include "windef.h"
-//#include "winbase.h"
-//#include "twain.h"
 #include "twain_i.h"
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(twain);
 
 static TW_UINT16 DSM_initialized;      /* whether Source Manager is initialized */
 static TW_UINT32 DSM_sourceId;         /* source id generator */
index eec7fc7..4044cb2 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <config.h>
-
-#include <stdarg.h>
-
-#include <windef.h>
-#include <winbase.h>
-//#include "twain.h"
 #include "twain_i.h"
-#include <wine/debug.h>
-
-WINE_DEFAULT_DEBUG_CHANNEL(twain);
 
 /* A helper function that looks up a destination identity in the active
    source list */
index a8fa2fb..b426aa3 100644 (file)
 #ifndef _TWAIN32_H
 #define _TWAIN32_H
 
-#ifndef __WINE_CONFIG_H
-# error You must include config.h first
-#endif
+#include <config.h>
 
 #include <stdarg.h>
 
-#include "windef.h"
-#include "winbase.h"
-#include "twain.h"
+#define NONAMELESSUNION
+#define NONAMELESSSTRUCT
+
+#include <windef.h>
+#include <winbase.h>
+#include <twain.h>
+
+#include <wine/debug.h>
+WINE_DEFAULT_DEBUG_CHANNEL(twain);
 
 /* internal information about an active data source */
 typedef struct tagActiveDS