[MPlayer-cygwin] [BUGREPORT] svn 21886: gettimeofday undefinedon MingW

Diego Biurrun diego at biurrun.de
Mon Jan 15 01:52:24 CET 2007


On Sat, Jan 13, 2007 at 04:04:33PM -0500, John Brown wrote:
> 
> OK, but after make distclean and configure, I now get:
> 
> g++ -I../stream -I../loader -I../libavutil -I../libavcodec -I../libavformat 
> -I.
> -I.. -Wdeclaration-after-statement -W -Wall -Wno-unused-parameter -O2 
> -march=pre
> scott -mtune=prescott -g3  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
> -D_LARGEFI
> LE64_SOURCE -I/mingw/include/ -I/mingw/include -I/mingw/include/dvdnav 
> -I/mingw/
> include/freetype2 -I/mingw/include -I/mingw/lib/live/liveMedia/include
>    -I/mingw/lib/live/UsageEnvironment/include              
> -I/mingw/lib/live/Ba
> sicUsageEnvironment/include              
> -I/mingw/lib/live/groupsock/include -D_
> _STDC_LIMIT_MACROS   -c -o demux_rtp_codec.o demux_rtp_codec.cpp
> cc1plus.exe: warning: command line option "-Wdeclaration-after-statement" 
> is valid for C/ObjC but not for C++
> demux_rtp_codec.cpp: In function 'void rtpCodecInitialize_video(demuxer_t*, 
> Medi
> aSubsession*, unsigned int&)':
> demux_rtp_codec.cpp:97: warning: comparison between signed and unsigned 
> integerexpressions
> demux_rtp_codec.cpp:100: error: 'INT_MAX' was not declared in this scope
> demuxer.h: At global scope:
> demuxer.h:275: warning: 'void* realloc_struct(void*, size_t, size_t)' 
> defined but not used
> make[1]: *** [demux_rtp_codec.o] Error 1
> make[1]: Leaving directory `/c/progra~1/multimedia/mplayer/svn/libmpdemux'
> make: *** [libmpdemux/libmpdemux.a] Error 2
> 
> I fixed this by #including <limits.h> in libmpdemux/demux_rtp_internal.h.

Patch please.

Diego



More information about the MPlayer-cygwin mailing list