diff --git a/src/include/switch_utils.h b/src/include/switch_utils.h index 6e6d7565fe..6dfe5d0055 100644 --- a/src/include/switch_utils.h +++ b/src/include/switch_utils.h @@ -580,8 +580,8 @@ int switch_inet_pton(int af, const char *src, void *dst); #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); +#endif SWITCH_END_EXTERN_C #endif diff --git a/src/switch_utils.c b/src/switch_utils.c index cd2a6159a1..0f21c10802 100644 --- a/src/switch_utils.c +++ b/src/switch_utils.c @@ -1080,6 +1080,7 @@ SWITCH_DECLARE(const char *) switch_priority_name(switch_priority_t priority) static char RFC2833_CHARS[] = "0123456789*#ABCDF"; +#ifdef _MSC_VER /* Copyright (c) 1996 by Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any