[TWAIN_32]

* 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
This commit is contained in:
Amine Khaldi 2013-12-27 14:08:56 +00:00
parent ca9b838eb0
commit 3c0256d2c4
3 changed files with 10 additions and 30 deletions

View file

@ -19,21 +19,7 @@
* 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 */

View file

@ -19,17 +19,7 @@
* 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 */

View file

@ -20,15 +20,19 @@
#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