[FFmpeg-devel] [PATCH] msvc: Fix compilation errors due to header include order.
protogonoi at gmail.com
Thu Nov 27 12:38:01 CET 2014
The patch "lavf: Use wchar functions for filenames on windows for
mkdir/rmdir/rename/unlink" that was recently added has broken msvc/icl
This is because winsock2.h must be included before windows.h. There are
many other files that include windows.h that dont check for winsock2.h (as
they dont need it) but include avformat/internal.h which now includes
winsock2.h but after all the files that explicitly include their own
windows.h. As a result all these files now wont compile under msvc/icl and
generate warnings under mingw.
The attached patch fixes that by ensuring the correct header include order.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2161 bytes
Desc: not available
More information about the ffmpeg-devel