[vlc-devel] [PATCH] core: win32: fix compilation for Winstore

Steve Lhomme robux4 at videolabs.io
Tue Mar 14 15:15:23 CET 2017


From: Steve Lhomme <slhomme at matroska.org>

MMRESULT is not defined in that case with MS headers
---
 src/win32/specific.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/win32/specific.c b/src/win32/specific.c
index 37f0b99e83..31d40af844 100644
--- a/src/win32/specific.c
+++ b/src/win32/specific.c
@@ -35,6 +35,9 @@
 
 #include <mmsystem.h>
 #include <winsock.h>
+#if VLC_WINSTORE_APP && !defined(__MINGW32__)
+typedef UINT MMRESULT;
+#endif
 
 DWORD LoadLibraryFlags = 0;
 
-- 
2.11.1



More information about the vlc-devel mailing list