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 {