From 158063fecb35e3cf6483e2e091369da9f1dd2145 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Wed, 18 Dec 2002 20:50:19 +0000 Subject: [PATCH] Unquoted some 16-bit types, so the IDL compiler can use them. --- include/wtypes.h | 15 +++++++++------ include/wtypes.idl | 21 ++++++++++++--------- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/include/wtypes.h b/include/wtypes.h index 0ecde4f2f32..2e8b93dc4d7 100644 --- a/include/wtypes.h +++ b/include/wtypes.h @@ -9,12 +9,6 @@ extern "C" { #endif #include "basetsd.h" #include "guiddef.h" -typedef CHAR OLECHAR16; -typedef LPSTR LPOLESTR16; -typedef LPCSTR LPCOLESTR16; -typedef OLECHAR16 *BSTR16; -typedef BSTR16 *LPBSTR16; -#define OLESTR16(x) x #if 0 /* winnt.h */ typedef unsigned char BYTE; @@ -160,6 +154,15 @@ typedef const OLECHAR *LPCOLESTR; #ifndef __WINE__ #define OLESTR(str) WINE_UNICODE_TEXT(str) #endif +typedef CHAR OLECHAR16; + +typedef LPSTR LPOLESTR16; + +typedef LPCSTR LPCOLESTR16; + +typedef OLECHAR16 *BSTR16; +typedef BSTR16 *LPBSTR16; +#define OLESTR16(x) x typedef LONG SCODE; typedef struct _COAUTHIDENTITY { diff --git a/include/wtypes.idl b/include/wtypes.idl index 07976c90d4f..9fa0295c6bd 100644 --- a/include/wtypes.idl +++ b/include/wtypes.idl @@ -31,15 +31,6 @@ interface IWinTypes cpp_quote("#include \"basetsd.h\"") cpp_quote("#include \"guiddef.h\"") -/* from Wine's pre-WIDL wtypes.h */ -/* FIXME: does not belong here */ -cpp_quote("typedef CHAR OLECHAR16;") -cpp_quote("typedef LPSTR LPOLESTR16;") -cpp_quote("typedef LPCSTR LPCOLESTR16;") -cpp_quote("typedef OLECHAR16 *BSTR16;") -cpp_quote("typedef BSTR16 *LPBSTR16;") -cpp_quote("#define OLESTR16(x) x") - /******************** BASIC WIN32 TYPES ********************/ cpp_quote("#if 0 /* winnt.h */") /* don't redefine these */ @@ -166,6 +157,18 @@ cpp_quote("#ifndef __WINE__") cpp_quote("#define OLESTR(str) WINE_UNICODE_TEXT(str)") cpp_quote("#endif") +/* from Wine's pre-WIDL wtypes.h */ +/* FIXME: does not belong here */ +typedef CHAR OLECHAR16; +typedef LPSTR LPOLESTR16; +typedef LPCSTR LPCOLESTR16; +/* quoted because if BSTR16 is ever used in IDL files, + * it'll probably need some wire_marshal stuff too, + * and quoting these will detect any such necessity */ +cpp_quote("typedef OLECHAR16 *BSTR16;") +cpp_quote("typedef BSTR16 *LPBSTR16;") +cpp_quote("#define OLESTR16(x) x") + typedef LONG SCODE; typedef struct _COAUTHIDENTITY {