From 15af0f656fcd75bfcacb975476aab614e7ed8dd3 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 9 May 2004 10:03:41 +0000 Subject: From Lars Roland: add support for building a libethereal.dll with MSVC: add a config.nmake option to control whether to build libethereal.dll or not; remove "./wiretap" from PATH to prevent problems due to wrongly-loaded files; build dissector.lib with MSVC; move "print.c" and "ps.c" to the dissector helpers, as "print.c" imports variables from packet-frame.c and packet-data.c, which are in libethereal; move "g711.c" out of the dissector helpers, as they're used only by Ethereal in a tap, not in Tethereal or in any dissector; add a .def file for libethereal; arrange to declare global variables exported from libethereal with "__declspec(dllimport)" when building programs that import those variables; update the NSIS installer. Make the "configure" script define ETH_VAR_IMPORT as "extern". svn path=/trunk/; revision=10834 --- tap-smbsids.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tap-smbsids.c') diff --git a/tap-smbsids.c b/tap-smbsids.c index 7a4dd61e5d..2923cb8a4e 100644 --- a/tap-smbsids.c +++ b/tap-smbsids.c @@ -1,7 +1,7 @@ /* tap-smbsids.c * smbstat 2003 Ronnie Sahlberg * - * $Id: tap-smbsids.c,v 1.1 2003/06/09 10:08:40 sahlberg Exp $ + * $Id: tap-smbsids.c,v 1.2 2004/05/09 10:03:38 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -22,6 +22,10 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* With MSVC and a libethereal.dll this file needs to import some variables + in a special way. Therefore _NEED_VAR_IMPORT_ is defined. */ +#define _NEED_VAR_IMPORT_ + #ifdef HAVE_CONFIG_H # include "config.h" #endif -- cgit v1.2.3