widl: Do not define MIDL_user_allocate and MIDL_user_free as it's already in the psdk.
This commit is contained in:
parent
21c1034504
commit
c9dcef156e
|
@ -111,6 +111,9 @@ typedef unsigned char boolean;
|
||||||
#define midl_user_free MIDL_user_free
|
#define midl_user_free MIDL_user_free
|
||||||
#define midl_user_allocate MIDL_user_allocate
|
#define midl_user_allocate MIDL_user_allocate
|
||||||
|
|
||||||
|
void * __RPC_USER MIDL_user_allocate(SIZE_T);
|
||||||
|
void __RPC_USER MIDL_user_free(void *);
|
||||||
|
|
||||||
#define NdrFcShort(s) (unsigned char)(s & 0xff), (unsigned char)(s >> 8)
|
#define NdrFcShort(s) (unsigned char)(s & 0xff), (unsigned char)(s >> 8)
|
||||||
#define NdrFcLong(s) (unsigned char)(s & 0xff), (unsigned char)((s & 0x0000ff00) >> 8), \
|
#define NdrFcLong(s) (unsigned char)(s & 0xff), (unsigned char)((s & 0x0000ff00) >> 8), \
|
||||||
(unsigned char)((s & 0x00ff0000) >> 16), (unsigned char)(s >> 24)
|
(unsigned char)((s & 0x00ff0000) >> 16), (unsigned char)(s >> 24)
|
||||||
|
|
|
@ -1081,14 +1081,6 @@ static void write_rpc_interface_start(FILE *header, const type_t *iface)
|
||||||
{
|
{
|
||||||
unsigned int ver = get_attrv(iface->attrs, ATTR_VERSION);
|
unsigned int ver = get_attrv(iface->attrs, ATTR_VERSION);
|
||||||
const char *var = get_attrp(iface->attrs, ATTR_IMPLICIT_HANDLE);
|
const char *var = get_attrp(iface->attrs, ATTR_IMPLICIT_HANDLE);
|
||||||
static int allocate_written = 0;
|
|
||||||
|
|
||||||
if (!allocate_written)
|
|
||||||
{
|
|
||||||
allocate_written = 1;
|
|
||||||
fprintf(header, "void * __RPC_USER MIDL_user_allocate(SIZE_T);\n");
|
|
||||||
fprintf(header, "void __RPC_USER MIDL_user_free(void *);\n\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
fprintf(header, "/*****************************************************************************\n");
|
fprintf(header, "/*****************************************************************************\n");
|
||||||
fprintf(header, " * %s interface (v%d.%d)\n", iface->name, MAJORVERSION(ver), MINORVERSION(ver));
|
fprintf(header, " * %s interface (v%d.%d)\n", iface->name, MAJORVERSION(ver), MINORVERSION(ver));
|
||||||
|
|
Loading…
Reference in New Issue