[Freeswitch-svn] [commit] r13738 - in freeswitch/trunk/src: . include
FreeSWITCH SVN
mrene at freeswitch.org
Tue Jun 9 17:04:30 PDT 2009
Author: mrene
Date: Tue Jun 9 19:04:29 2009
New Revision: 13738
Log:
Export swtich_inet_ntop so modules can use it
Modified:
freeswitch/trunk/src/include/switch_utils.h
freeswitch/trunk/src/switch_utils.c
Modified: freeswitch/trunk/src/include/switch_utils.h
==============================================================================
--- freeswitch/trunk/src/include/switch_utils.h (original)
+++ freeswitch/trunk/src/include/switch_utils.h Tue Jun 9 19:04:29 2009
@@ -577,6 +577,12 @@
#endif
#endif
+#ifndef _MSC_VER
+#define switch_inet_ntop inet_ntop
+#else
+
+SWITCH_DECLARE(const char *) switch_inet_ntop(int af, void const *src, char *dst, size_t size);
+
SWITCH_END_EXTERN_C
#endif
/* For Emacs:
Modified: freeswitch/trunk/src/switch_utils.c
==============================================================================
--- freeswitch/trunk/src/switch_utils.c (original)
+++ freeswitch/trunk/src/switch_utils.c Tue Jun 9 19:04:29 2009
@@ -1080,9 +1080,6 @@
static char RFC2833_CHARS[] = "0123456789*#ABCDF";
-#ifndef _MSC_VER
-#define switch_inet_ntop inet_ntop
-#else
/* Copyright (c) 1996 by Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
@@ -1125,7 +1122,7 @@
* author:
* Paul Vixie, 1996.
*/
-const char *switch_inet_ntop(int af, void const *src, char *dst, size_t size)
+SWITCH_DECLARE(const char *) switch_inet_ntop(int af, void const *src, char *dst, size_t size)
{
switch (af) {
More information about the Freeswitch-svn
mailing list