Ethereal-dev: [Ethereal-dev] win32 compilation?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Jason House <jhouse@xxxxxxxxx>
Date: Wed, 30 Apr 2003 18:22:49 -0400
I seem to be having trouble with win32 compilation of plugins.c
I am using MSVC (nmake), but running nmake in a cygwin shell

I tracked down one symptom as being definitions inside of
plugins/plugin_table.h conflicting with epan/except.h ...
The attached patch helped
I just tried to compile ethereal for the first time in a long time under
win32... It looks like the definitions in plugins/plugin_table.h
conflict with those in epan/except.h

I believe that the attached diff at least fixes that problem.

When I try to compile now, I get the following:

plugins.c
..\plugins/plugin_api_decls.h(284) : error C2061: syntax error :
identifier 'addr_except_init'
..\plugins/plugin_api_decls.h(285) : error C2061: syntax error :
identifier 'p_except_deinit'
..\plugins/plugin_api_decls.h(285) : error C2059: syntax error : ';'
...

Performing a quick search:
$ pwd
~/ethereal

$ grep -r addr_except_init *
plugins/plugin_api_decls.h:addr_except_init       p_except_init;

$

What am I doing wrong?  Do I have an out of date library?
Index: plugin_table.h
===================================================================
RCS file: /cvsroot/ethereal/plugins/plugin_table.h,v
retrieving revision 1.61
diff -u -r1.61 plugin_table.h
--- plugin_table.h	30 Apr 2003 19:19:15 -0000	1.61
+++ plugin_table.h	30 Apr 2003 22:01:53 -0000
@@ -318,6 +318,7 @@
 
 typedef proto_item* (*addr_proto_tree_add_none_format)(proto_tree*, int, tvbuff_t*, gint, gint, const char*, ...);
 
+#ifndef XCEPT_H
 typedef int (*except_init)(void);
 typedef void (*except_deinit)(void);
 typedef void (*except_rethrow)(except_t *);
@@ -333,6 +334,7 @@
 typedef void (*except_set_allocator)(void *(*)(size_t), void (*)(void *));
 typedef void *(*except_alloc)(size_t);
 typedef void (*except_free)(void *);
+#endif
 
 typedef struct  {