From 064c48a607f01badf0e7ba92d2602d38b0a75f19 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Sun, 15 Dec 2002 01:13:18 +0000 Subject: [PATCH] Include guiddef.h in widltypes.h. --- tools/widl/header.c | 2 +- tools/widl/parser.l | 4 ++-- tools/widl/parser.y | 2 +- tools/widl/widltypes.h | 14 ++++++-------- 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/tools/widl/header.c b/tools/widl/header.c index 8b6c58f75bf..e226b70e121 100644 --- a/tools/widl/header.c +++ b/tools/widl/header.c @@ -603,7 +603,7 @@ void write_forward(type_t *iface) void write_guid(type_t *iface) { - uuid_t *uuid = get_attrp(iface->attrs, ATTR_UUID); + UUID *uuid = get_attrp(iface->attrs, ATTR_UUID); if (!uuid) return; fprintf(header, "DEFINE_GUID(IID_%s, 0x%08lx, 0x%04x, 0x%04x, 0x%02x,0x%02x, 0x%02x,0x%02x,0x%02x,0x%02x,0x%02x,0x%02x);\n", iface->name, uuid->Data1, uuid->Data2, uuid->Data3, uuid->Data4[0], uuid->Data4[1], diff --git a/tools/widl/parser.l b/tools/widl/parser.l index 739a1a6a22b..a7bc76aa75c 100644 --- a/tools/widl/parser.l +++ b/tools/widl/parser.l @@ -75,9 +75,9 @@ int import_stack_ptr = 0; static void pop_import(void); -static uuid_t* parse_uuid(const char*u) +static UUID* parse_uuid(const char*u) { - uuid_t* uuid = xmalloc(sizeof(uuid_t)); + UUID* uuid = xmalloc(sizeof(UUID)); char b[3]; /* it would be nice to use UuidFromStringA */ uuid->Data1 = strtoul(u, NULL, 16); diff --git a/tools/widl/parser.y b/tools/widl/parser.y index 73eccebb181..f842f1566de 100644 --- a/tools/widl/parser.y +++ b/tools/widl/parser.y @@ -106,7 +106,7 @@ static type_t std_uhyper = { "MIDL_uhyper" }; var_t *var; func_t *func; char *str; - uuid_t *uuid; + UUID *uuid; int num; } diff --git a/tools/widl/widltypes.h b/tools/widl/widltypes.h index 9c00ea2b7dd..11183f92a12 100644 --- a/tools/widl/widltypes.h +++ b/tools/widl/widltypes.h @@ -22,15 +22,20 @@ #define __WIDL_WIDLTYPES_H #include "windef.h" +#include "guiddef.h" #include "wine/rpcfc.h" +#ifndef UUID_DEFINED +#define UUID_DEFINED +typedef GUID UUID; +#endif + typedef struct _attr_t attr_t; typedef struct _expr_t expr_t; typedef struct _type_t type_t; typedef struct _typeref_t typeref_t; typedef struct _var_t var_t; typedef struct _func_t func_t; -typedef struct _uuid_t uuid_t; #define DECL_LINK(type) \ type *l_next; \ @@ -159,11 +164,4 @@ struct _func_t { DECL_LINK(func_t) }; -struct _uuid_t { - DWORD Data1; - WORD Data2; - WORD Data3; - BYTE Data4[8]; -}; - #endif -- 2.11.4.GIT