From: "Rémi Bernon" Subject: [PATCH 3/7] include: Add AggregateType / GetAbiType / GetLogicalType WinRT templates. Message-Id: <20210222090305.557337-3-rbernon@codeweavers.com> Date: Mon, 22 Feb 2021 10:03:01 +0100 In-Reply-To: <20210222090305.557337-1-rbernon@codeweavers.com> References: <20210222090305.557337-1-rbernon@codeweavers.com> Signed-off-by: Rémi Bernon --- include/windows.foundation.collections.idl | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/windows.foundation.collections.idl b/include/windows.foundation.collections.idl index 9f7a59ab907..cf47adfa7e4 100644 --- a/include/windows.foundation.collections.idl +++ b/include/windows.foundation.collections.idl @@ -27,6 +27,19 @@ import "windowscontracts.idl"; namespace Windows { namespace Foundation { + +cpp_quote("#ifdef __cplusplus") +cpp_quote("} /* extern \"C\" */") +cpp_quote("namespace ABI { namespace Windows { namespace Foundation { namespace Internal {") +cpp_quote("template struct GetAbiType { typedef T type; };") +cpp_quote("template struct GetLogicalType { typedef T type; };") +cpp_quote("template struct AggregateType {};") +cpp_quote("template struct GetAbiType> { typedef A type; };") +cpp_quote("template struct GetLogicalType> { typedef L type; };") +cpp_quote("}}}}") +cpp_quote("extern \"C\" {") +cpp_quote("#endif") + #ifdef __WIDL__ [ contract(Windows.Foundation.FoundationContract, 1.0), -- 2.30.0