Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
12357:13e138957b7a | 12358:133e0ebde74d |
---|---|
1 #include <stdio.h> | 1 #include <stdio.h> |
2 #include <stdlib.h> | 2 #include <stdlib.h> |
3 #ifdef WIN32 | |
4 #define _UWIN 1 /*disable Non-underscored versions of non-ANSI functions as otherwise int eof would conflict with eof()*/ | |
5 #include <windows.h> | |
6 #endif | |
3 #include <string.h> | 7 #include <string.h> |
4 #include <unistd.h> | 8 #include <unistd.h> |
5 | 9 |
6 // #include <sys/mman.h> | 10 // #include <sys/mman.h> |
7 #include <sys/types.h> | 11 #include <sys/types.h> |
790 #if defined(WIN32) && defined(USE_WIN32DLL) | 794 #if defined(WIN32) && defined(USE_WIN32DLL) |
791 { /*make our codec dirs available for LoadLibraryA()*/ | 795 { /*make our codec dirs available for LoadLibraryA()*/ |
792 char tmppath[MAX_PATH*2 + 1]; | 796 char tmppath[MAX_PATH*2 + 1]; |
793 char win32path[MAX_PATH]; | 797 char win32path[MAX_PATH]; |
794 char realpath[MAX_PATH]; | 798 char realpath[MAX_PATH]; |
795 int WINAPI SetEnvironmentVariableA(char*,char*); | |
796 int WINAPI GetModuleFileNameA(void*,char*,int); | |
797 #ifdef __CYGWIN__ | 799 #ifdef __CYGWIN__ |
798 cygwin_conv_to_full_win32_path(WIN32_PATH,win32path); | 800 cygwin_conv_to_full_win32_path(WIN32_PATH,win32path); |
799 strcpy(tmppath,win32path); | 801 strcpy(tmppath,win32path); |
800 #ifdef USE_REALCODECS | 802 #ifdef USE_REALCODECS |
801 cygwin_conv_to_full_win32_path(REALCODEC_PATH,realpath); | 803 cygwin_conv_to_full_win32_path(REALCODEC_PATH,realpath); |