summaryrefslogtreecommitdiffstats
path: root/loader/wine
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-24 18:48:30 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-24 18:48:30 +0000
commit1e5b3460c5213fa9d9e3b010a8b019129ab2de34 (patch)
treedf35b8a28592a5ff8793a83f98b38111e5560f3d /loader/wine
parent636bbe7d832cb8cd23a0ebf9bce4655c12ad2d93 (diff)
downloadmpv-1e5b3460c5213fa9d9e3b010a8b019129ab2de34.tar.bz2
mpv-1e5b3460c5213fa9d9e3b010a8b019129ab2de34.tar.xz
last mingw32 support patch by Sascha Sommer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9979 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/wine')
-rw-r--r--loader/wine/windef.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/loader/wine/windef.h b/loader/wine/windef.h
index eff6a70038..51b1034eae 100644
--- a/loader/wine/windef.h
+++ b/loader/wine/windef.h
@@ -127,7 +127,7 @@ extern "C" {
#define PASCAL __stdcall
#define pascal __stdcall
#define _pascal __stdcall
-#if !defined(__CYGWIN__)
+#if !defined(__CYGWIN__) && !defined(__MINGW32__)
#define _stdcall __stdcall
#define _fastcall __stdcall
#define __fastcall __stdcall
@@ -136,13 +136,13 @@ extern "C" {
#define CDECL __cdecl
#define _CDECL __cdecl
#define cdecl __cdecl
-#if !defined(__CYGWIN__)
+#if !defined(__CYGWIN__) && !defined(__MINGW32__)
#define _cdecl __cdecl
#endif
#define WINAPIV __cdecl
#define APIENTRY WINAPI
-#if !defined(__CYGWIN__)
+#if !defined(__CYGWIN__) && !defined(__MINGW32__)
#define __declspec(x)
#endif
#define dllimport
@@ -570,12 +570,24 @@ typedef LRESULT CALLBACK (*WNDPROC16)(HWND16,UINT16,WPARAM16,LPARAM);
#define min(a,b) (((a) < (b)) ? (a) : (b))
#endif
+#ifndef _MAX_PATH
#define _MAX_PATH 260
+#endif
+#ifndef MAX_PATH
#define MAX_PATH 260
+#endif
+#ifndef _MAX_DRIVE
#define _MAX_DRIVE 3
+#endif
+#ifndef _MAX_DIR
#define _MAX_DIR 256
+#endif
+#ifndef _MAX_FNAME
#define _MAX_FNAME 255
+#endif
+#ifndef _MAX_EXT
#define _MAX_EXT 256
+#endif
#define HFILE_ERROR16 ((HFILE16)-1)
#define HFILE_ERROR ((HFILE)-1)