#include "../curl_setup.h"
-char *curlx_inet_ntop(int af, const void *addr, char *buf, size_t size);
-
#ifdef HAVE_INET_NTOP
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#define curlx_inet_ntop(af,addr,buf,size) \
inet_ntop(af, addr, buf, (curl_socklen_t)(size))
#endif
-#endif
+#else
+char *curlx_inet_ntop(int af, const void *addr, char *buf, size_t size);
+#endif /* HAVE_INET_NTOP */
#endif /* HEADER_CURL_INET_NTOP_H */
#include "../curl_setup.h"
-int curlx_inet_pton(int, const char *, void *);
-
#ifdef HAVE_INET_PTON
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#else
#define curlx_inet_pton(x,y,z) inet_pton(x,y,z)
#endif
-#endif
+#else
+int curlx_inet_pton(int, const char *, void *);
+#endif /* HAVE_INET_PTON */
#endif /* HEADER_CURL_INET_PTON_H */