]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Declare the functions even if they don't get used. Move the macro #ifdef below
authorDanny Mayer <mayer@ntp.org>
Sat, 10 May 2003 02:08:39 +0000 (22:08 -0400)
committerDanny Mayer <mayer@ntp.org>
Sat, 10 May 2003 02:08:39 +0000 (22:08 -0400)
the declaration.

bk: 3ebc5f27EuldsCVu4LOGvpdr_wnUvg

include/isc/net.h

index 8b2e37faba81ef7dfe458a2081a5c757ae82e3ca..25924febca389273f5d5be0bb6a9688dc77a24c3 100644 (file)
@@ -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