[Freeswitch-svn] [commit] r13741 - in freeswitch/trunk/src: . include
FreeSWITCH SVN
mrene at freeswitch.org
Tue Jun 9 17:48:35 PDT 2009
Author: mrene
Date: Tue Jun 9 19:48:35 2009
New Revision: 13741
Log:
Also export switch_inet_pton
Modified:
freeswitch/trunk/src/include/switch_utils.h
freeswitch/trunk/src/inet_pton.c
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:48:35 2009
@@ -561,7 +561,7 @@
#define switch_test_subnet(_ip, _net, _mask) (_mask ? ((_net & _mask) == (_ip & _mask)) : _net ? _net == _ip : 1)
-int switch_inet_pton(int af, const char *src, void *dst);
+SWITCH_DECLARE(int) switch_inet_pton(int af, const char *src, void *dst)
/* malloc or DIE macros */
#ifdef NDEBUG
Modified: freeswitch/trunk/src/inet_pton.c
==============================================================================
--- freeswitch/trunk/src/inet_pton.c (original)
+++ freeswitch/trunk/src/inet_pton.c Tue Jun 9 19:48:35 2009
@@ -66,7 +66,7 @@
* author:
* Paul Vixie, 1996.
*/
-int
+SWITCH_DECLARE(int)
switch_inet_pton(int af, const char *src, void *dst)
{
switch (af) {
Modified: freeswitch/trunk/src/switch_utils.c
==============================================================================
--- freeswitch/trunk/src/switch_utils.c (original)
+++ freeswitch/trunk/src/switch_utils.c Tue Jun 9 19:48:35 2009
@@ -57,7 +57,7 @@
};
#ifndef WIN32
-int switch_inet_pton(int af, const char *src, void *dst)
+SWITCH_DECLARE(int) switch_inet_pton(int af, const char *src, void *dst)
{
return inet_pton(af, src, dst);
}
More information about the Freeswitch-svn
mailing list