diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-05-09 10:03:41 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2004-05-09 10:03:41 +0000 |
commit | 7b627e9908b35102db534323f22494f1bf96ba9e (patch) | |
tree | 96fab6287a112ff9379ebf012a7a939884b62ec1 /packet-mtp3.h | |
parent | 6431bbd77fb1aeddb8a0245244d3ac29005e293d (diff) |
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".
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10834 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-mtp3.h')
-rw-r--r-- | packet-mtp3.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/packet-mtp3.h b/packet-mtp3.h index e6b3bb58c0..7b5272c92a 100644 --- a/packet-mtp3.h +++ b/packet-mtp3.h @@ -1,6 +1,6 @@ /* packet-mtp3.h * - * $Id: packet-mtp3.h,v 1.5 2004/04/21 05:53:57 guy Exp $ + * $Id: packet-mtp3.h,v 1.6 2004/05/09 10:03:37 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -67,10 +67,11 @@ typedef struct _mtp3_tap_rec_t { extern void mtp3_addr_to_str_buf(const guint8 *data, gchar *buf); /* - * the following allows TAP code access to the different SIs - * without having to duplicate it + * the following allows TAP code access to the messages + * without having to duplicate it. With MSVC and a + * libethereal.dll, we need a special declaration. */ -extern const value_string mtp3_service_indicator_code_short_vals[]; +ETH_VAR_IMPORT const value_string mtp3_service_indicator_code_short_vals[]; /* * I only want to gather stats for non-spare SI codes |