Mercurial > mplayer.hg
diff mplayer.c @ 12358:133e0ebde74d
Make it compile on mingw again. Now it is finally possible to include windows.h in mplayer.c
author | faust3 |
---|---|
date | Fri, 30 Apr 2004 16:56:00 +0000 |
parents | 6f5ae9f4eeb9 |
children | 85f18227756f |
line wrap: on
line diff
--- 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 <stdio.h> #include <stdlib.h> +#ifdef WIN32 +#define _UWIN 1 /*disable Non-underscored versions of non-ANSI functions as otherwise int eof would conflict with eof()*/ +#include <windows.h> +#endif #include <string.h> #include <unistd.h> @@ -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);