mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
vfwcap: Unbreak building after c201069fa
These headers can't be included in any arbitrary order. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
8d26c193fb
commit
4f373a5111
@ -19,9 +19,6 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <vfw.h>
|
||||
#include <windows.h>
|
||||
|
||||
#include "libavutil/internal.h"
|
||||
#include "libavutil/log.h"
|
||||
#include "libavutil/opt.h"
|
||||
@ -30,6 +27,12 @@
|
||||
#include "libavformat/avformat.h"
|
||||
#include "libavformat/internal.h"
|
||||
|
||||
// windows.h must no be included before winsock2.h, and libavformat internal
|
||||
// headers may include winsock2.h
|
||||
#include <windows.h>
|
||||
// windows.h needs to be included before vfw.h
|
||||
#include <vfw.h>
|
||||
|
||||
/* Some obsolete versions of MinGW32 before 4.0.0 lack this. */
|
||||
#ifndef HWND_MESSAGE
|
||||
#define HWND_MESSAGE ((HWND) -3)
|
||||
|
Loading…
Reference in New Issue
Block a user