diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2016-09-27 22:44:18 +1000 |
---|---|---|
committer | James Ross-Gowan <rossymiles@gmail.com> | 2016-09-28 21:38:52 +1000 |
commit | 3751065f9740244c95da963c0dd16a0bcd5b419c (patch) | |
tree | 78f13a6a1fcde648b14a414f21e82e7564ba9cbc /waftools/fragments | |
parent | c239b7de7efbe3e87a9c09922c88e6a88777fb80 (diff) | |
download | mpv-3751065f9740244c95da963c0dd16a0bcd5b419c.tar.bz2 mpv-3751065f9740244c95da963c0dd16a0bcd5b419c.tar.xz |
win32: build with -DINITGUID
We always want to use __declspec(selectany) to declare GUIDs, but
manually including <initguid.h> in every file that used GUIDs was
error-prone. Since all <initguid.h> does is define INITGUID and include
<guiddef.h>, we can remove all references to <initguid.h> and just
compile with -DINITGUID to get the same effect.
Also, this partially reverts 622bcb0 by re-adding libuuid.a to the
build, since apparently some GUIDs (such as GUID_NULL) are not declared
in the source file, even when INITGUID is set.
Diffstat (limited to 'waftools/fragments')
-rw-r--r-- | waftools/fragments/wasapi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/waftools/fragments/wasapi.c b/waftools/fragments/wasapi.c index 5528ce171b..fbd2bb6e1b 100644 --- a/waftools/fragments/wasapi.c +++ b/waftools/fragments/wasapi.c @@ -1,7 +1,6 @@ #include <malloc.h> #include <stdlib.h> #include <process.h> -#include <initguid.h> #include <audioclient.h> #include <endpointvolume.h> #include <mmdeviceapi.h> |