[vlc-devel] [PATCH] core: include windows.h before other windows headers
Steve Lhomme
robux4 at videolabs.io
Tue Feb 14 13:19:19 CET 2017
the official SDKs don't enforce this
---
src/win32/dirs.c | 1 +
src/win32/specific.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/src/win32/dirs.c b/src/win32/dirs.c
index 23fef44baa..617491b6f6 100644
--- a/src/win32/dirs.c
+++ b/src/win32/dirs.c
@@ -36,6 +36,7 @@
#ifdef __MINGW32__
# include <w32api.h>
#endif
+#include <windows.h>
#include <direct.h>
#include <shlobj.h>
diff --git a/src/win32/specific.c b/src/win32/specific.c
index d2d5451b48..8979ef477c 100644
--- a/src/win32/specific.c
+++ b/src/win32/specific.c
@@ -33,6 +33,7 @@
#include "../lib/libvlc_internal.h"
#include "config/vlc_getopt.h"
+#include <windows.h>
#include <mmsystem.h>
#include <winsock.h>
--
2.11.0
More information about the vlc-devel
mailing list