# HG changeset patch # User faust3 # Date 1083344160 0 # Node ID 133e0ebde74d01e1a68e1ac903d642dd0c5c07f6 # Parent 13e138957b7a087309ffc525850a38f10def74eb Make it compile on mingw again. Now it is finally possible to include windows.h in mplayer.c diff -r 13e138957b7a -r 133e0ebde74d codec-cfg.h --- a/codec-cfg.h Fri Apr 30 10:40:30 2004 +0000 +++ b/codec-cfg.h Fri Apr 30 16:56:00 2004 +0000 @@ -27,7 +27,7 @@ #define CODECS_STATUS__MAX 2 -#ifndef GUID_TYPE +#if !defined(GUID_TYPE) && !defined(GUID_DEFINED) #define GUID_TYPE typedef struct { unsigned long f1; diff -r 13e138957b7a -r 133e0ebde74d get_path.c --- a/get_path.c Fri Apr 30 10:40:30 2004 +0000 +++ b/get_path.c Fri Apr 30 16:56:00 2004 +0000 @@ -12,7 +12,6 @@ if ((homedir = getenv("HOME")) == NULL) #if defined(__MINGW32__)||defined(__CYGWIN__) /*hack to get fonts etc. loaded outside of cygwin environment*/ { - int __stdcall GetModuleFileNameA(void* hModule,char* lpFilename,int nSize); int i,imax=0; char exedir[260]; GetModuleFileNameA(NULL, exedir, 260); diff -r 13e138957b7a -r 133e0ebde74d mencoder.c --- a/mencoder.c Fri Apr 30 10:40:30 2004 +0000 +++ b/mencoder.c Fri Apr 30 16:56:00 2004 +0000 @@ -23,6 +23,10 @@ #ifdef __MINGW32__ #define SIGQUIT 3 #endif +#ifdef WIN32 +#include +#endif + #include #include "config.h" diff -r 13e138957b7a -r 133e0ebde74d mplayer.c --- a/mplayer.c Fri Apr 30 10:40:30 2004 +0000 +++ b/mplayer.c Fri Apr 30 16:56:00 2004 +0000 @@ -1,5 +1,9 @@ #include #include +#ifdef WIN32 +#define _UWIN 1 /*disable Non-underscored versions of non-ANSI functions as otherwise int eof would conflict with eof()*/ +#include +#endif #include #include @@ -792,8 +796,6 @@ char tmppath[MAX_PATH*2 + 1]; char win32path[MAX_PATH]; char realpath[MAX_PATH]; - int WINAPI SetEnvironmentVariableA(char*,char*); - int WINAPI GetModuleFileNameA(void*,char*,int); #ifdef __CYGWIN__ cygwin_conv_to_full_win32_path(WIN32_PATH,win32path); strcpy(tmppath,win32path);