From 601c52f0fb7d36599045e90a6baafe918997f644 Mon Sep 17 00:00:00 2001 From: Gilbert Ramirez Date: Tue, 13 Jul 1999 02:53:26 +0000 Subject: Added support for compiling on win32 with Visual C and 'nmake'. It compiles, but does not link. Perhaps someone who understands the MS tools can help out. I made it link a few months ago, but with different version of glib/gtk+. I can't remember how I made it link. Most of the compatibility issues were resolved with adding #ifdef HAVE_UNISTD_H the the source code. Please be sure to add this to all future code. svn path=/trunk/; revision=359 --- proto.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'proto.h') diff --git a/proto.h b/proto.h index 9be3254f52..bd1e562744 100644 --- a/proto.h +++ b/proto.h @@ -1,7 +1,7 @@ /* proto.h * Definitions for protocol display * - * $Id: proto.h,v 1.2 1999/07/07 23:54:12 guy Exp $ + * $Id: proto.h,v 1.3 1999/07/13 02:52:58 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -33,6 +33,10 @@ #endif #endif +#ifdef HAVE_WINSOCK_H +#include +#endif + /* needs glib.h */ typedef struct GNode proto_tree; typedef struct GNode proto_item; @@ -92,6 +96,9 @@ typedef struct hf_register_info { struct value_string *vals; } hf_register_info; +#ifdef WIN32 +#define boolean truth_value +#endif /* Info stored in each proto_item GNode */ typedef struct field_info { -- cgit v1.2.3