[MPlayer-cygwin] [PATCH] Gcc4.1 and mingw

Sascha Sommer saschasommer at freenet.de
Tue Jun 7 15:57:57 CEST 2005


Hi,

Am Montag, den 06.06.2005, 07:51 +0200 schrieb Gianluigi Tiesi:
> I've managed to compile mplayer with mingw gcc 4.1 snapshot
> there are some fixes to made, also I've noticed an old warning
> now is an error, the fix is in the patch, it's not so good but I've
> no other way to fix it, since the problem is on mingw signed versions
> of the defines are yet defined:
> 
> so the file ... becomes:
> typedef char char;
> typedef unsigned char __uint8;
> 
> typedef short short;
> typedef unsigned short __uint16;
> 
> typedef int long;
> typedef unsigned int __uint32;
> 
> typedef long long long long;
> typedef unsigned long long __uint64;
> 
> I've no idea about which system defines what but undefining each entry
> just before redefining is sure to work as it should.
> Other fixes are in vo_directx.c, dx guids cannot be declared static
> after declared non static by includes, btw on mingw doesn't make problem
> to remove static, Sascha can you check it on cygwin?
> The third fix is in dvd device.c, lvalue casting is now an error,
> but casting HANDLE to int then re-picking as HANDLE works.
> About the aspi stuff I've made it to use the right syntax instead of
> genericism of (FARPROC) that doesn't work anymore in gcc4
> 

I put the typedefs into #ifndefs and applied the rest.
Please test.

Thanks.

Sascha




More information about the MPlayer-cygwin mailing list