From 5813a1fe23d859f1c77a087b283562d1026ba94f Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Fri, 24 May 2024 17:41:26 +1000 Subject: [PATCH] include: Complete __wine_uuidof for C++. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit /usr/local/include/wine/windows/guiddef.h:83:68: error: incomplete type ‘__wine_uuidof_type::inst’ {aka ‘__wine_uuidof’} used in nested name specifier 83 | #define __uuidof(type) __wine_uuidof_type<__typeof__(type)>::inst::uuid --- include/guiddef.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/guiddef.h b/include/guiddef.h index c5ba9635b89..0837ed34ad7 100644 --- a/include/guiddef.h +++ b/include/guiddef.h @@ -56,8 +56,9 @@ typedef struct _GUID #ifdef __WINE_UUID_ATTR extern "C++" { - template struct __wine_uuidof; - + template struct __wine_uuidof { + static const GUID uuid; + }; template struct __wine_uuidof_type { typedef __wine_uuidof inst; };