diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-05-09 10:03:41 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-05-09 10:03:41 +0000 |
commit | 15af0f656fcd75bfcacb975476aab614e7ed8dd3 (patch) | |
tree | 96fab6287a112ff9379ebf012a7a939884b62ec1 /tap-ansi_astat.c | |
parent | b964421aec471b54755db1ab9ebc768467b6fdd5 (diff) | |
download | wireshark-15af0f656fcd75bfcacb975476aab614e7ed8dd3.tar.gz wireshark-15af0f656fcd75bfcacb975476aab614e7ed8dd3.tar.bz2 wireshark-15af0f656fcd75bfcacb975476aab614e7ed8dd3.zip |
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
Diffstat (limited to 'tap-ansi_astat.c')
-rw-r--r-- | tap-ansi_astat.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tap-ansi_astat.c b/tap-ansi_astat.c index 7091d6fd85..53eae264e7 100644 --- a/tap-ansi_astat.c +++ b/tap-ansi_astat.c @@ -3,7 +3,7 @@ * Copyright 2003, Michael Lum <mlum [AT] telostech.com> * In association with Telos Technology Inc. * - * $Id: tap-ansi_astat.c,v 1.3 2003/12/09 18:49:30 guy Exp $ + * $Id: tap-ansi_astat.c,v 1.4 2004/05/09 10:03:38 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -28,6 +28,10 @@ * This TAP provides statistics for the ANSI A Interface: */ +/* 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 |