Module: wine Branch: master Commit: 5813a1fe23d859f1c77a087b283562d1026ba94f URL: https://gitlab.winehq.org/wine/wine/-/commit/5813a1fe23d859f1c77a087b283562d...
Author: Alistair Leslie-Hughes leslie_alistair@hotmail.com Date: Fri May 24 17:41:26 2024 +1000
include: Complete __wine_uuidof for C++.
/usr/local/include/wine/windows/guiddef.h:83:68: error: incomplete type ‘__wine_uuidof_type<IUnknown>::inst’ {aka ‘__wine_uuidof<IUnknown>’} 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<typename T> struct __wine_uuidof; - + template<typename T> struct __wine_uuidof { + static const GUID uuid; + }; template<typename T> struct __wine_uuidof_type { typedef __wine_uuidof<T> inst; };