[MPlayer-dev-eng] [PATCH] Check for windows.h

Erik Auerswald auerswal at unix-ag.uni-kl.de
Tue Jan 8 12:55:58 CET 2013


Hi,

the attached patch checks for availability of the windows.h header on 
Windows systems (i.e. if configuring for Windows). The respective 
#define is always created, it is used by ffmpeg/libavutil/time.c .

Without this patch a -Wundef warning is issued:

libavutil/time.c:32:5: warning: "HAVE_WINDOWS_H" is not defined [-Wundef]

On Windows systems, this might even result in some kind of problem -- I 
did not check the code. I did not test on Windows either (I don't have it).

I have tested the attached patch on GNU/Linux.

This patch conflicts with my previously sent 
mplayer-configure-always_define_have_direct_h_io_h.patch, because of 
overlapping change sets. You can trivially combine the patches manually.

Thanks,
Erik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-configure-check_windows.h.patch
Type: text/x-diff
Size: 759 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20130108/484fb5fa/attachment.bin>


More information about the MPlayer-dev-eng mailing list