wtypes.idl: Support OLESTR macro with non-native wchar_t.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Kevin Puetz 2020-02-13 11:36:05 +01:00 committed by Alexandre Julliard
parent c120890396
commit 3bc14e79eb
1 changed files with 5 additions and 1 deletions

View File

@ -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;