]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix windows missing inet_ntop missing symbol when built on >= vista but run on <...
authorMichael Jerris <mike@jerris.com>
Tue, 11 May 2010 17:07:13 +0000 (13:07 -0400)
committerMichael Jerris <mike@jerris.com>
Tue, 11 May 2010 17:07:13 +0000 (13:07 -0400)
src/switch_utils.c

index e059d6ca081ef98abbf96e4035a61cd4aafdf6d0..842977acf988448ee89249a4a320c028e97cd475 100644 (file)
@@ -1331,7 +1331,7 @@ static const char *switch_inet_ntop4(const unsigned char *src, char *dst, size_t
        return strcpy(dst, tmp);
 }
 
-#if HAVE_SIN6 || (defined(NTDDI_VERSION) && (NTDDI_VERSION < NTDDI_VISTA))
+#if HAVE_SIN6 || defined(NTDDI_VERSION)
 /* const char *
  * inet_ntop6(src, dst, size)
  *     convert IPv6 binary address into presentation (printable) format
@@ -1488,7 +1488,7 @@ SWITCH_DECLARE(char *) get_addr6(char *buf, switch_size_t len, struct sockaddr_i
        *buf = '\0';
 
        if (sa) {
-#if defined(NTDDI_VERSION) && (NTDDI_VERSION < NTDDI_VISTA)
+#if defined(NTDDI_VERSION)
                        switch_inet_ntop6((unsigned char*)sa, buf, len);
 #else
                inet_ntop(AF_INET6, sa, buf, len);