widl: Fix incorrect version number in generated code (possible take 2)

Dan Hipschman dsh at linux.ucla.edu
Thu Aug 10 20:41:33 CDT 2006


I didn't notice that earlier today someone sent a patch entitled "widl: Little
cleanup using new write_header_autogen()"

http://winehq.org/pipermail/wine-patches/2006-August/029635.html

that conflicts with the one I just sent entitled "widl: Fix incorrect version
number in genereated code".

http://winehq.org/pipermail/wine-patches/2006-August/029644.html

In the event that that one gets applied before mine, this new patch will work.

ChangeLog:
* Use Wine version number for WIDL
---
 tools/widl/header.c |    2 +-
 tools/widl/widl.h   |    2 --
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/tools/widl/header.c b/tools/widl/header.c
index 1145ca0..8655900 100644
--- a/tools/widl/header.c
+++ b/tools/widl/header.c
@@ -83,7 +83,7 @@ int is_void(const type_t *t, const var_t
 void write_header_autogen(FILE *f)
 {
   fprintf(f, "/*** Autogenerated by WIDL %s from %s - Do not edit ***/\n",
-        WIDL_FULLVERSION, input_name);
+        PACKAGE_VERSION, input_name);
 }
 
 void write_guid(FILE *f, const char *guid_prefix, const char *name, const UUID *uuid)
diff --git a/tools/widl/widl.h b/tools/widl/widl.h
index 9357450..e84a5ad 100644
--- a/tools/widl/widl.h
+++ b/tools/widl/widl.h
@@ -25,8 +25,6 @@ #include "widltypes.h"
 
 #include <time.h>
 
-#define WIDL_FULLVERSION "0.1"
-
 extern int debuglevel;
 #define DEBUGLEVEL_NONE		0x0000
 #define DEBUGLEVEL_CHAT		0x0001



More information about the wine-patches mailing list