diff options
author | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-09-15 21:41:27 +0000 |
---|---|---|
committer | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-09-15 21:41:27 +0000 |
commit | 8aa1d2cc8b9ec63b58b9c17f187243c3abcc431d (patch) | |
tree | 530236a21bac3dce196561fab331ab3fc294001f /wsutil | |
parent | 7c5135fca2006bf4dad1ca945f40f3a1f0483230 (diff) |
Also rename inet_ntop() on Windows
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34129 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/inet_v6defs.h | 9 | ||||
-rw-r--r-- | wsutil/libwsutil.def | 3 |
2 files changed, 7 insertions, 5 deletions
diff --git a/wsutil/inet_v6defs.h b/wsutil/inet_v6defs.h index f02faf0f7e..c6cfa8fdec 100644 --- a/wsutil/inet_v6defs.h +++ b/wsutil/inet_v6defs.h @@ -29,13 +29,14 @@ * don't have it. */ -/* Windows does not have inet_pton() until Vista. In order to allow binaries - * compiled on Vista or later to work on pre-Vista Windows (without resorting - * to fragile link ordering tricks), we rename our inet_pton() to - * ws_inet_pton(). +/* Windows does not have inet_pton() and inet_pton() until Vista. In order + * to allow binaries compiled on Vista or later to work on pre-Vista Windows + * (without resorting to fragile link ordering tricks), we give our versions + * of those functions Wireshark-specific names. */ #ifdef WIN32 #define inet_pton ws_inet_pton +#define inet_ntop ws_inet_ntop #endif extern int inet_pton(int af, const char *src, void *dst); diff --git a/wsutil/libwsutil.def b/wsutil/libwsutil.def index 7bb5ae2aaf..1dff793519 100644 --- a/wsutil/libwsutil.def +++ b/wsutil/libwsutil.def @@ -26,7 +26,8 @@ ws_module_open inet_aton ; inet_ntop.c -inet_ntop +; Note: inet_v6defs.h renames this function for Windows (only) +ws_inet_ntop ; inet_pton.c ; Note: inet_v6defs.h renames this function for Windows (only) |