Commit e6ad25ff authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

guiddef.h: Use static const IID instance for __uuidof.

parent 127b502c
......@@ -40,7 +40,8 @@ extern "C++" {
#define __CRT_UUID_DECL(type,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \
extern "C++" { \
template<> inline const GUID &__wine_uuidof<type>() { \
return (const IID){l,w1,w2, {b1,b2,b3,b4,b5,b6,b7,b8}}; \
static const IID __uuid_inst = {l,w1,w2, {b1,b2,b3,b4,b5,b6,b7,b8}}; \
return __uuid_inst; \
} \
template<> inline const GUID &__wine_uuidof<type*>() { \
return __wine_uuidof<type>(); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment