Commit 158063fe authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

Unquoted some 16-bit types, so the IDL compiler can use them.

parent fcb40e8f
...@@ -9,12 +9,6 @@ extern "C" { ...@@ -9,12 +9,6 @@ extern "C" {
#endif #endif
#include "basetsd.h" #include "basetsd.h"
#include "guiddef.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 */ #if 0 /* winnt.h */
typedef unsigned char BYTE; typedef unsigned char BYTE;
...@@ -160,6 +154,15 @@ typedef const OLECHAR *LPCOLESTR; ...@@ -160,6 +154,15 @@ typedef const OLECHAR *LPCOLESTR;
#ifndef __WINE__ #ifndef __WINE__
#define OLESTR(str) WINE_UNICODE_TEXT(str) #define OLESTR(str) WINE_UNICODE_TEXT(str)
#endif #endif
typedef CHAR OLECHAR16;
typedef LPSTR LPOLESTR16;
typedef LPCSTR LPCOLESTR16;
typedef OLECHAR16 *BSTR16;
typedef BSTR16 *LPBSTR16;
#define OLESTR16(x) x
typedef LONG SCODE; typedef LONG SCODE;
typedef struct _COAUTHIDENTITY { typedef struct _COAUTHIDENTITY {
......
...@@ -31,15 +31,6 @@ interface IWinTypes ...@@ -31,15 +31,6 @@ interface IWinTypes
cpp_quote("#include \"basetsd.h\"") cpp_quote("#include \"basetsd.h\"")
cpp_quote("#include \"guiddef.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 ********************/ /******************** BASIC WIN32 TYPES ********************/
cpp_quote("#if 0 /* winnt.h */") /* don't redefine these */ cpp_quote("#if 0 /* winnt.h */") /* don't redefine these */
...@@ -166,6 +157,18 @@ cpp_quote("#ifndef __WINE__") ...@@ -166,6 +157,18 @@ cpp_quote("#ifndef __WINE__")
cpp_quote("#define OLESTR(str) WINE_UNICODE_TEXT(str)") cpp_quote("#define OLESTR(str) WINE_UNICODE_TEXT(str)")
cpp_quote("#endif") 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 LONG SCODE;
typedef struct _COAUTHIDENTITY { typedef struct _COAUTHIDENTITY {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment