Ensures that the header include order is such that winsock2.h is always included before windows.h or that windows.h does not include winsock.h. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>tags/n2.5
@@ -27,6 +27,7 @@ | |||||
#include "avdevice.h" | #include "avdevice.h" | ||||
#define COBJMACROS | #define COBJMACROS | ||||
#define WIN32_LEAN_AND_MEAN | |||||
#include <windows.h> | #include <windows.h> | ||||
#define NO_DSHOW_STRSAFE | #define NO_DSHOW_STRSAFE | ||||
#include <dshow.h> | #include <dshow.h> | ||||
@@ -31,6 +31,7 @@ | |||||
#include "config.h" | #include "config.h" | ||||
#if HAVE_WINDOWS_H | #if HAVE_WINDOWS_H | ||||
#define WIN32_LEAN_AND_MEAN | |||||
#include <windows.h> | #include <windows.h> | ||||
#endif | #endif | ||||
#if HAVE_OPENGL_GL3_H | #if HAVE_OPENGL_GL3_H | ||||
@@ -32,12 +32,6 @@ | |||||
#include <inttypes.h> | #include <inttypes.h> | ||||
#include <stdio.h> | #include <stdio.h> | ||||
#if CONFIG_BZLIB | |||||
#include <bzlib.h> | |||||
#endif | |||||
#if CONFIG_ZLIB | |||||
#include <zlib.h> | |||||
#endif | |||||
#include "libavutil/avstring.h" | #include "libavutil/avstring.h" | ||||
#include "libavutil/base64.h" | #include "libavutil/base64.h" | ||||
@@ -62,6 +56,13 @@ | |||||
#include "riff.h" | #include "riff.h" | ||||
#include "rmsipr.h" | #include "rmsipr.h" | ||||
#if CONFIG_BZLIB | |||||
#include <bzlib.h> | |||||
#endif | |||||
#if CONFIG_ZLIB | |||||
#include <zlib.h> | |||||
#endif | |||||
typedef enum { | typedef enum { | ||||
EBML_NONE, | EBML_NONE, | ||||
EBML_UINT, | EBML_UINT, | ||||
@@ -21,6 +21,7 @@ | |||||
#ifndef AVUTIL_ATOMIC_WIN32_H | #ifndef AVUTIL_ATOMIC_WIN32_H | ||||
#define AVUTIL_ATOMIC_WIN32_H | #define AVUTIL_ATOMIC_WIN32_H | ||||
#define WIN32_LEAN_AND_MEAN | |||||
#include <windows.h> | #include <windows.h> | ||||
#define avpriv_atomic_int_get atomic_int_get_win32 | #define avpriv_atomic_int_get atomic_int_get_win32 | ||||