From 3bc14e79ebdf2d810bddefadea3d50a1e43fcf89 Mon Sep 17 00:00:00 2001 From: Kevin Puetz Date: Thu, 13 Feb 2020 11:36:05 +0100 Subject: [PATCH] wtypes.idl: Support OLESTR macro with non-native wchar_t. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- include/wtypes.idl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/wtypes.idl b/include/wtypes.idl index 032d64b9844..a6682212b5b 100644 --- a/include/wtypes.idl +++ b/include/wtypes.idl @@ -287,7 +287,11 @@ typedef WCHAR OLECHAR; typedef [string] OLECHAR *LPOLESTR; typedef [string] const OLECHAR *LPCOLESTR; cpp_quote("#ifndef __WINESRC__") -cpp_quote("#define OLESTR(str) L##str") +cpp_quote("# ifdef WINE_UNICODE_NATIVE") +cpp_quote("# define OLESTR(str) L##str") +cpp_quote("# else") +cpp_quote("# define OLESTR(str) u##str") +cpp_quote("# endif") cpp_quote("#endif") typedef LONG SCODE;