From 4f599c5ea180f5246adf2a95c158b50f027a8c21 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 11 Jul 2017 10:27:56 +0200 Subject: Enable IAccessible2 for MinGW MinGW 5.3 is able to compile the IAccessible2 classes. All that is needed is some way to provide the missing IIDs, which is done via specialization of a function template (similar to the MinGW's __uuidof operator). [ChangeLog][Windows][Accessibility] MinGW builds now support IAccessible2. Change-Id: I218a4b89c81b54aa96f7c743544388631ca9a53e Reviewed-by: Frederik Gladhorn --- src/3rdparty/iaccessible2/generated/x86/ia2_api_all.h | 4 +++- src/3rdparty/iaccessible2/generated/x86/ia2_api_all_i.c | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src/3rdparty') diff --git a/src/3rdparty/iaccessible2/generated/x86/ia2_api_all.h b/src/3rdparty/iaccessible2/generated/x86/ia2_api_all.h index eb3b57b8bd..9e4be75bb9 100644 --- a/src/3rdparty/iaccessible2/generated/x86/ia2_api_all.h +++ b/src/3rdparty/iaccessible2/generated/x86/ia2_api_all.h @@ -16,7 +16,9 @@ */ /* @@MIDL_FILE_HEADING( ) */ -#pragma warning( disable: 4049 ) /* more than 64k source lines */ +#ifdef _MSC_VER +# pragma warning( disable: 4049 ) /* more than 64k source lines */ +#endif /* verify that the version is high enough to compile this file*/ diff --git a/src/3rdparty/iaccessible2/generated/x86/ia2_api_all_i.c b/src/3rdparty/iaccessible2/generated/x86/ia2_api_all_i.c index c50b3e9a4f..61bb5ee5f7 100644 --- a/src/3rdparty/iaccessible2/generated/x86/ia2_api_all_i.c +++ b/src/3rdparty/iaccessible2/generated/x86/ia2_api_all_i.c @@ -18,7 +18,9 @@ */ /* @@MIDL_FILE_HEADING( ) */ -#pragma warning( disable: 4049 ) /* more than 64k source lines */ +#ifdef _MSC_VER +# pragma warning( disable: 4049 ) /* more than 64k source lines */ +#endif #ifdef __cplusplus @@ -65,7 +67,7 @@ typedef IID CLSID; #define MIDL_DEFINE_GUID(type,name,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) \ const type name = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}} -#endif !_MIDL_USE_GUIDDEF_ +#endif // !_MIDL_USE_GUIDDEF_ MIDL_DEFINE_GUID(IID, IID_IAccessibleRelation,0x7CDF86EE,0xC3DA,0x496a,0xBD,0xA4,0x28,0x1B,0x33,0x6E,0x1F,0xDC); -- cgit v1.2.3