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/wine/windef.h | |
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/wine/windef.h')
-rw-r--r-- | loader/wine/windef.h | 38 |
1 files changed, 0 insertions, 38 deletions
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 |