[MPlayer-cygwin] [PATCH] Gcc4.1 and mingw
Sascha Sommer
saschasommer at freenet.de
Mon Jun 6 18:19:20 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;
>
It looks like the __int* get defined in _mingw.h. I don't like the
#undef solution. Maybe adding #ifndef __int* around the definitions is
cleaner. If they only added the unsigned types, too...
Better ideas?
> 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?
There shouldn't be a problem.
> 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
>
Looks ok.
Sascha
More information about the MPlayer-cygwin
mailing list