From 27f184ef40e8da09d9dfc8f71a8d1893729381f6 Mon Sep 17 00:00:00 2001 From: Matt Oliver Date: Tue, 15 Apr 2014 15:22:50 +1000 Subject: [PATCH] Fix OpenGL device compilation with msvc gl.h Reveiwed-by: Lukasz Marek Signed-off-by: Michael Niedermayer --- libavdevice/opengl_enc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavdevice/opengl_enc.c b/libavdevice/opengl_enc.c index 6be03981dd..4e25f199f1 100644 --- a/libavdevice/opengl_enc.c +++ b/libavdevice/opengl_enc.c @@ -30,6 +30,9 @@ #include "config.h" +#if HAVE_WINDOWS_H +#include +#endif #if HAVE_OPENGL_GL3_H #include #elif HAVE_ES2_GL_H @@ -41,9 +44,6 @@ #if HAVE_GLXGETPROCADDRESS #include #endif -#if HAVE_WINDOWS_H -#include -#endif #if HAVE_SDL #include