From 622bcb0e37f39f2a542b42587ca442c6600b7414 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Sun, 1 May 2016 01:49:38 +1000 Subject: win32: replace libuuid.a usage with initguid.h Including initguid.h at the top of a file that uses references to GUIDs causes the GUIDs to be declared globally with __declspec(selectany). The 'selectany' attribute tells the linker to consolidate multiple definitions of each GUID, which would be great except that, in Cygwin and MinGW GCC 6.1, this method of linking makes the GUIDs conflict with the ones declared in libuuid.a. Since initguid.h obsoletes libuuid.a in modern compilers that support __declspec(selectany), add initguid.h to all files that use GUIDs and remove libuuid.a from the build. Fixes #3097 --- video/out/opengl/hwdec_d3d11egl.c | 1 + video/out/w32_common.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'video/out') diff --git a/video/out/opengl/hwdec_d3d11egl.c b/video/out/opengl/hwdec_d3d11egl.c index 66df9983d1..32fb42a692 100644 --- a/video/out/opengl/hwdec_d3d11egl.c +++ b/video/out/opengl/hwdec_d3d11egl.c @@ -15,6 +15,7 @@ * License along with mpv. If not, see . */ +#include #include #include #include diff --git a/video/out/w32_common.c b/video/out/w32_common.c index 042e81b7fe..e858f037aa 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -15,13 +15,13 @@ * with mpv. If not, see . */ +#include #include #include #include #include #include #include -#include #include #include #include -- cgit v1.2.3