summaryrefslogtreecommitdiffstats
path: root/libavdevice
diff options
context:
space:
mode:
authorMatthew Oliver <protogonoi@gmail.com>2014-11-27 19:00:36 +1100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-27 12:40:18 +0100
commit0167fa00604443aa20a2fb627081a46f1c0be4ff (patch)
tree5221bb560aaa19c26441c9d03a73b16541100d40 /libavdevice
parent22e557917d08ed93e9c657f13c9669482341eb02 (diff)
downloadffmpeg-streaming-0167fa00604443aa20a2fb627081a46f1c0be4ff.zip
ffmpeg-streaming-0167fa00604443aa20a2fb627081a46f1c0be4ff.tar.gz
msvc: Fix compilation errors due to header include order.
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>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/dshow_capture.h1
-rw-r--r--libavdevice/opengl_enc.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/libavdevice/dshow_capture.h b/libavdevice/dshow_capture.h
index e4b4dce..0252070 100644
--- a/libavdevice/dshow_capture.h
+++ b/libavdevice/dshow_capture.h
@@ -27,6 +27,7 @@
#include "avdevice.h"
#define COBJMACROS
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#define NO_DSHOW_STRSAFE
#include <dshow.h>
diff --git a/libavdevice/opengl_enc.c b/libavdevice/opengl_enc.c
index 5f5b800..434ae97 100644
--- a/libavdevice/opengl_enc.c
+++ b/libavdevice/opengl_enc.c
@@ -31,6 +31,7 @@
#include "config.h"
#if HAVE_WINDOWS_H
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#if HAVE_OPENGL_GL3_H
OpenPOWER on IntegriCloud