From: Danny Mayer Date: Sat, 10 May 2003 02:08:39 +0000 (-0400) Subject: Declare the functions even if they don't get used. Move the macro #ifdef below X-Git-Tag: NTP_4_1_80_RC1~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=460b164a2c534a1c0603715a69155362e7903793;p=thirdparty%2Fntp.git Declare the functions even if they don't get used. Move the macro #ifdef below the declaration. bk: 3ebc5f27EuldsCVu4LOGvpdr_wnUvg --- diff --git a/include/isc/net.h b/include/isc/net.h index 8b2e37fab..25924febc 100644 --- a/include/isc/net.h +++ b/include/isc/net.h @@ -260,22 +260,22 @@ isc_net_probeipv6(void); * ISC_R_UNEXPECTED */ -#ifdef ISC_PLATFORM_NEEDNTOP const char * isc_net_ntop(int af, const void *src, char *dst, size_t size); +#ifdef ISC_PLATFORM_NEEDNTOP #define inet_ntop isc_net_ntop #endif -#ifdef ISC_PLATFORM_NEEDPTON int isc_net_pton(int af, const char *src, void *dst); +#ifdef ISC_PLATFORM_NEEDPTON #undef inet_pton #define inet_pton isc_net_pton #endif -#ifdef ISC_PLATFORM_NEEDATON int isc_net_aton(const char *cp, struct in_addr *addr); +#ifdef ISC_PLATFORM_NEEDATON #define inet_aton isc_net_aton #endif