On Tue, 7 Apr 2020, Martin Storsjö wrote:
Without this, the guids defined in codecapi.h essentially can't be
used.
Signed-off-by: Martin Storsjö <[email protected]>
---
mingw-w64-headers/include/uuids.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/mingw-w64-headers/include/uuids.h
b/mingw-w64-headers/include/uuids.h
index ec93ec2a6..1af246a3d 100644
--- a/mingw-w64-headers/include/uuids.h
+++ b/mingw-w64-headers/include/uuids.h
@@ -363,6 +363,11 @@
OUR_GUID_ENTRY(CODECAPI_SETALLDEFAULTS,0x6c5e6a7c,0xacf8,0x4f55,0xa9,0x99,0x1a,0
OUR_GUID_ENTRY(CODECAPI_ALLSETTINGS,0x6a577e92,0x83e1,0x4113,0xad,0xc2,0x4f,0xce,0xc3,0x2f,0x83,0xa1)
OUR_GUID_ENTRY(CODECAPI_SUPPORTSEVENTS,0x0581af97,0x7693,0x4dbd,0x9d,0xca,0x3f,0x9e,0xbd,0x65,0x85,0xa1)
OUR_GUID_ENTRY(CODECAPI_CURRENTCHANGELIST,0x1cb14e83,0x7d72,0x4657,0x83,0xfd,0x47,0xa2,0xc5,0xb9,0xd1,0x3d)
+
+#ifdef INITGUID
+#define UUID_GEN
+#include <codecapi.h>
+#endif
#endif
I can clarify this bit - when included on its own, codecapi.h doesn't
define anything. Normally an end user defines INITGUID before including a
header, for getting selectay definitions of the guids in it. With
codecapi.h, it's UUID_GEN that one has to define, and it only expands to
OUR_GUID_ENTRY, which only is defined within uuids.h.
This makes these two headers (uuids.h and codecapi.h) match WinSDK in this
aspect.
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public