Commit ea90e1ce authored by Puetz Kevin A's avatar Puetz Kevin A Committed by Alexandre Julliard

include: Use __typeof__ so <guiddef.h> is compatible with -std=c++11.

The typeof(...) extension is available in -std=gnu++11, but c++11 considers it replaced by decltype(...) and off-by-default __uuidof does need GNU __typeof__(), not decltype(), for c++03 support and because both __uuidof(typename) and __uuidof(expression) should work, but decltype(typename) is not accepted. Signed-off-by: 's avatarKevin Puetz <PuetzKevinA@JohnDeere.com> Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 493e9a61
......@@ -74,7 +74,7 @@ extern "C++" {
__WINE_UUID_ATTR const GUID __wine_uuidof<type>::uuid = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}; \
}
#define __uuidof(type) __wine_uuidof_type<typeof(type)>::inst::uuid
#define __uuidof(type) __wine_uuidof_type<__typeof__(type)>::inst::uuid
#else /* __WINE_UUID_ATTR */
......
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