Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a8c75ad4
Commit
a8c75ad4
authored
Jul 14, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Added macros for __uuidof emulation based on C++ templates.
parent
c41a300f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
guiddef.h
include/guiddef.h
+26
-0
No files found.
include/guiddef.h
View file @
a8c75ad4
...
...
@@ -29,6 +29,32 @@ typedef struct _GUID
unsigned
short
Data3
;
unsigned
char
Data4
[
8
];
}
GUID
;
/* Macros for __uuidof emulation */
#if defined(__cplusplus) && !defined(_MSC_VER)
extern
"C++"
{
template
<
typename
T
>
const
GUID
&
__wine_uuidof
();
}
#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}}; \
} \
template<> inline const GUID &__wine_uuidof<type*>() { \
return __wine_uuidof<type>(); \
} \
}
#define __uuidof(type) __wine_uuidof<typeof(type)>()
#else
#define __CRT_UUID_DECL(type,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8)
#endif
#endif
#undef DEFINE_GUID
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment