1
0
mirror of https://github.com/wine-mirror/wine synced 2024-06-29 06:14:34 +00:00

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
This commit is contained in:
Alistair Leslie-Hughes 2024-05-24 17:41:26 +10:00 committed by Alexandre Julliard
parent badaed6419
commit 5813a1fe23

View File

@ -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;
};