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

Ivan Kalvachev ikalvachev at gmail.com
Mon May 23 14:05:20 CEST 2011


On 5/22/11, Diego Biurrun <diego at biurrun.de> wrote:
> On Sat, May 21, 2011 at 01:25:05AM +0200, Gianluigi Tiesi wrote:
>> On Sat, May 21, 2011 at 12:36:37AM +0300, Ivan Kalvachev wrote:
>> > On 5/18/11, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
>> > > Gianluigi Tiesi <mplayer <at> netfarm.it> writes:
>> > >
>> > >> on mingw32 swab is defined is string.h thus not detected by configure
----------------^^

>> > >> that looks in unistd.h
>> > >
>> > > http://thread.gmane.org/gmane.comp.video.mplayer.cvs/17298
>> >
>> > Will you revert this revert or do you prefer I to be the one to do it?
>> >
>> > This check seems too harmless to be removed so soon after
>> > "fixing" the need for it.
>>
>> what's the rpoblem by including both headers?
>
> I had upstream fix this issue, update your MinGW64.

I suspect that mingw32 is separate from mingw64, so the bug there has
been left unfixed.

Also fixing something upstream is not valid reason to cripple
ourselves by dropping the proper checks.
New build/versions of compilers always have some (new) problems to
iron out, especially the mingw. Been able to use older version is more
than desired feature for a package builder.

The point is.
Having the check in configure doesn't cost us anything, so we have no
gain from removing it. However it is huge pain for the users when they
have to hack around mplayer to build it.


More information about the MPlayer-dev-eng mailing list