]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
windows: Don't redeclare inet_ntop/pton if already defined
authorMartin Willi <martin@revosec.ch>
Thu, 2 Jan 2014 14:20:14 +0000 (15:20 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 4 Jun 2014 13:53:05 +0000 (15:53 +0200)
src/libstrongswan/utils/windows.h

index 9ed6f8f11b7ee409594cbffe727b8ee5ad5f5a3b..235586c537af8d38966ebb28bfc5d464628cf70d 100644 (file)
@@ -115,12 +115,16 @@ char* strndup(const char *s, size_t n);
 /**
  * Provided via ws2_32
  */
+#ifndef InetNtop
 const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
+#endif
 
 /**
  * Provided via ws2_32
  */
+#ifndef InetPton
 int inet_pton(int af, const char *src, void *dst);
+#endif
 
 /**
  * Provided by printf hook backend