git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13741
d0543943-73ff-0310-b7d9-
9358b9ac24b2
#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
* author:
* Paul Vixie, 1996.
*/
-int
+SWITCH_DECLARE(int)
switch_inet_pton(int af, const char *src, void *dst)
{
switch (af) {
};
#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);
}