diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-06-02 12:27:33 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-06-02 12:27:33 +0000 |
commit | efb42f1aaa721e5aeaa7b9cbf755125ed9d559a7 (patch) | |
tree | 4c78fcc265be1bfc25751cfae0661606527237d6 /loader | |
parent | 4f88dffa130591daa88a30a30e02406b8566a49a (diff) | |
download | mpv-efb42f1aaa721e5aeaa7b9cbf755125ed9d559a7.tar.bz2 mpv-efb42f1aaa721e5aeaa7b9cbf755125ed9d559a7.tar.xz |
Get rid of superfluous __WINE__ #define, it was always enabled and
cluttered the code. Blessed by Reimar.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23448 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader')
-rw-r--r-- | loader/Makefile | 1 | ||||
-rw-r--r-- | loader/wine/basetsd.h | 2 | ||||
-rw-r--r-- | loader/wine/debugtools.h | 4 | ||||
-rw-r--r-- | loader/wine/driver.h | 2 | ||||
-rw-r--r-- | loader/wine/winbase.h | 6 | ||||
-rw-r--r-- | loader/wine/windef.h | 38 | ||||
-rw-r--r-- | loader/wine/winnt.h | 6 |
7 files changed, 0 insertions, 59 deletions
diff --git a/loader/Makefile b/loader/Makefile index ce31e087d6..929efd98e6 100644 --- a/loader/Makefile +++ b/loader/Makefile @@ -2,7 +2,6 @@ include ../config.mak LIBNAME_COMMON = libloader.a -CFLAGS= -D__WINE__ #CFLAGS+=-Ddbg_printf=__vprintf -DTRACE=__vprintf -DDETAILED_OUT SRCS_COMMON = driver.c afl.c vfl.c diff --git a/loader/wine/basetsd.h b/loader/wine/basetsd.h index 274bb88d14..75bbd5f76c 100644 --- a/loader/wine/basetsd.h +++ b/loader/wine/basetsd.h @@ -12,9 +12,7 @@ #ifndef __WINE_BASETSD_H #define __WINE_BASETSD_H -#ifdef __WINE__ #include "config.h" -#endif /* defined(__WINE__) */ #ifdef __cplusplus extern "C" { diff --git a/loader/wine/debugtools.h b/loader/wine/debugtools.h index ce2448db87..8204079497 100644 --- a/loader/wine/debugtools.h +++ b/loader/wine/debugtools.h @@ -2,8 +2,6 @@ #ifndef __WINE_DEBUGTOOLS_H #define __WINE_DEBUGTOOLS_H -#ifdef __WINE__ /* Debugging interface is internal to Wine */ - #include <stdarg.h> #include "config.h" #include "windef.h" @@ -88,6 +86,4 @@ extern int dbg_printf(const char *format, ...); #define DPRINTF dbg_printf #define MESSAGE dbg_printf -#endif /* __WINE__ */ - #endif /* __WINE_DEBUGTOOLS_H */ diff --git a/loader/wine/driver.h b/loader/wine/driver.h index dc8661aa3a..89d4396e5c 100644 --- a/loader/wine/driver.h +++ b/loader/wine/driver.h @@ -101,12 +101,10 @@ HMODULE16 WINAPI GetDriverModuleHandle16(HDRVR16 hDriver); HMODULE WINAPI GetDriverModuleHandle(HDRVR hDriver); DWORD WINAPI GetDriverFlags( HDRVR hDriver ); -#ifdef __WINE__ /* this call (GetDriverFlags) is not documented, nor the flags returned. * here are Wine only definitions */ #define WINE_GDF_EXIST 0x80000000 #define WINE_GDF_16BIT 0x10000000 -#endif #endif /* __WINE_DRIVER_H */ diff --git a/loader/wine/winbase.h b/loader/wine/winbase.h index 8746da891d..1047bdcd50 100644 --- a/loader/wine/winbase.h +++ b/loader/wine/winbase.h @@ -909,9 +909,7 @@ typedef DWORD WINAPI (*LPPROGRESS_ROUTINE)(LARGE_INTEGER, LARGE_INTEGER, LARGE_I #define MEM_PRIVATE 0x00020000 #define MEM_MAPPED 0x00040000 #define MEM_TOP_DOWN 0x00100000 -#ifdef __WINE__ #define MEM_SYSTEM 0x80000000 -#endif #define SEC_FILE 0x00800000 #define SEC_IMAGE 0x01000000 @@ -995,9 +993,7 @@ typedef struct { DWORD Reserved; }CRITICAL_SECTION; -#ifdef __WINE__ #define CRITICAL_SECTION_INIT { 0, -1, 0, 0, 0, 0 } -#endif typedef struct { DWORD dwOSVersionInfoSize; @@ -1779,10 +1775,8 @@ LONG WINAPI InterlockedExchangeAdd(PLONG,LONG); LONG WINAPI InterlockedIncrement(PLONG); VOID WINAPI SetLastError(DWORD); -#ifdef __WINE__ #define GetCurrentProcess() ((HANDLE)0xffffffff) #define GetCurrentThread() ((HANDLE)0xfffffffe) -#endif #ifdef __cplusplus } diff --git a/loader/wine/windef.h b/loader/wine/windef.h index ab8b4f6644..8e5b308446 100644 --- a/loader/wine/windef.h +++ b/loader/wine/windef.h @@ -12,10 +12,7 @@ #ifndef __WINE_WINDEF_H #define __WINE_WINDEF_H -#ifdef __WINE__ # include "config.h" -# undef UNICODE -#endif #ifdef _EGCS_ #define __stdcall @@ -43,37 +40,20 @@ extern "C" { #define NULL 0 /* Macros to map Winelib names to the correct implementation name */ -/* depending on __WINE__ and UNICODE macros. */ /* Note that Winelib is purely Win32. */ -#ifdef __WINE__ # define WINELIB_NAME_AW(func) \ func##_must_be_suffixed_with_W_or_A_in_this_context \ func##_must_be_suffixed_with_W_or_A_in_this_context -#else /* __WINE__ */ -# ifdef UNICODE -# define WINELIB_NAME_AW(func) func##W -# else -# define WINELIB_NAME_AW(func) func##A -# endif /* UNICODE */ -#endif /* __WINE__ */ -#ifdef __WINE__ # define DECL_WINELIB_TYPE_AW(type) /* nothing */ -#else /* __WINE__ */ -# define DECL_WINELIB_TYPE_AW(type) typedef WINELIB_NAME_AW(type) type; -#endif /* __WINE__ */ #ifndef NONAMELESSSTRUCT -# if defined(__WINE__) || !defined(_FORCENAMELESSSTRUCT) # define NONAMELESSSTRUCT -# endif #endif /* !defined(NONAMELESSSTRUCT) */ #ifndef NONAMELESSUNION -# if defined(__WINE__) || !defined(_FORCENAMELESSUNION) || !defined(__cplusplus) # define NONAMELESSUNION -# endif #endif /* !defined(NONAMELESSUNION) */ #ifndef NONAMELESSSTRUCT @@ -250,11 +230,7 @@ typedef WIN_BOOL *LPWIN_BOOL; /* Special case: a segmented pointer is just a pointer in the user's code. */ -#ifdef __WINE__ typedef DWORD SEGPTR; -#else -typedef void* SEGPTR; -#endif /* __WINE__ */ /* Handle types that exist both in Win16 and Win32. */ @@ -482,18 +458,6 @@ typedef LRESULT CALLBACK (*WNDPROC16)(HWND16,UINT16,WPARAM16,LPARAM); /* Define some empty macros for compatibility with Windows code. */ -#ifndef __WINE__ -#define NEAR -#define FAR -#define near -#define far -#define _near -#define _far -#define IN -#define OUT -#define OPTIONAL -#endif /* __WINE__ */ - /* Macro for structure packing. */ #ifdef __GNUC__ @@ -529,13 +493,11 @@ typedef LRESULT CALLBACK (*WNDPROC16)(HWND16,UINT16,WPARAM16,LPARAM); #define SELECTOROF(ptr) (HIWORD(ptr)) #define OFFSETOF(ptr) (LOWORD(ptr)) -#ifdef __WINE__ /* macros to set parts of a DWORD (not in the Windows API) */ #define SET_LOWORD(dw,val) ((dw) = ((dw) & 0xffff0000) | LOWORD(val)) #define SET_LOBYTE(dw,val) ((dw) = ((dw) & 0xffffff00) | LOBYTE(val)) #define SET_HIBYTE(dw,val) ((dw) = ((dw) & 0xffff00ff) | (LOWORD(val) & 0xff00)) #define ADD_LOWORD(dw,val) ((dw) = ((dw) & 0xffff0000) | LOWORD((DWORD)(dw)+(val))) -#endif /* Macros to access unaligned or wrong-endian WORDs and DWORDs. */ /* Note: These macros are semantically broken, at least for wrc. wrc diff --git a/loader/wine/winnt.h b/loader/wine/winnt.h index 0d1d950486..60a937d6e4 100644 --- a/loader/wine/winnt.h +++ b/loader/wine/winnt.h @@ -81,7 +81,6 @@ /* These types are _not_ defined for the emulator, because they */ /* depend on the UNICODE macro that only exists in user's code. */ -//#ifndef __WINE__ # ifdef UNICODE typedef WCHAR TCHAR, *PTCHAR; typedef LPWSTR PTSTR, LPTSTR; @@ -93,7 +92,6 @@ typedef LPSTR PTSTR, LPTSTR; typedef LPCSTR PCTSTR, LPCTSTR; #define __TEXT(string) string # endif /* UNICODE */ -//#endif /* __WINE__ */ #define TEXT(quote) __TEXT(quote) typedef BYTE BOOLEAN; @@ -629,8 +627,6 @@ typedef struct _CONTEXT typedef CONTEXT *PCONTEXT; typedef HANDLE *PHANDLE; -#ifdef __WINE__ - /* Macros for easier access to i386 context registers */ #define EAX_reg(context) ((context)->Eax) @@ -766,8 +762,6 @@ typedef HANDLE *PHANDLE; # error You must define GET_IP for this CPU #endif -#endif /* __WINE__ */ - /* * Exception codes */ |