Revision
17524
Author
mike
Date
2010-05-11 12:07:13 -0500 (Tue, 11 May 2010)

Log Message

fix windows missing inet_ntop missing symbol when built on >= vista but run on < vista

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_utils.c (17523 => 17524)


--- freeswitch/trunk/src/switch_utils.c	2010-05-11 16:51:28 UTC (rev 17523)
+++ freeswitch/trunk/src/switch_utils.c	2010-05-11 17:07:13 UTC (rev 17524)
@@ -1331,7 +1331,7 @@
 	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 @@
 	*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);