[MPlayer-dev-eng] swab is in string.h on win32 and declaration conflicts

Gianluigi Tiesi mplayer at netfarm.it
Wed May 18 04:25:13 CEST 2011


Hi,

on mingw32 swab is defined is string.h thus not detected by configure
that looks in unistd.h

the signature of mplayer provided differs from the one in string.h:
_CRTIMP void __cdecl __MINGW_NOTHROW    swab (const char*, char*, size_t);

but mplayer declares it as:
void swab(const void *from, void *to, ssize_t n);

ssize_t is signed while size_t unsigned

a possible solution is include also string.h in the configure check

Regards

-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/


More information about the MPlayer-dev-eng mailing list