[MPlayer-cvslog] r31410 - in trunk/loader/qtx: list.c qtxload.c

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Jul 5 21:07:50 CEST 2010


On Mon, Jul 05, 2010 at 08:34:55PM +0200, Diego Biurrun wrote:
> So what is the correct solution for vd_realvid.c and similar files?

That depends on which solution compiles.
In principle: include the wine header for WIN32_LOADER, include windows.h
for real Windows.

> Currently they use a bunch of forward declarations for stuff that is
> declared in loader/wine/winbase.h (LoadLibraryA, GetProcAddress,
> FreeLibrary, GetModuleHandleA), but the signature appears to be
> somewhat incompatible.  If I replace the forward declarations by
> the #include the result are a ton of warnings like
> 
> libmpcodecs/vd_realvid.c: In function 'load_syms_windows':
> libmpcodecs/vd_realvid.c:184: warning: assignment makes pointer from integer without a cast
> libmpcodecs/vd_realvid.c:191: warning: passing argument 1 of 'GetProcAddress' makes integer from pointer without a cast
> libmpcodecs/vd_realvid.c:191: warning: assignment from incompatible pointer type

When you have the right includes, you should use the proper types,
e.g. HANDLE instead of void * in some cases.


More information about the MPlayer-cvslog mailing list