natInetAddress.cc: Changed USE_WINSOCK to WIN32, added '#undef STRICT'.
authorAdam Megacz <adam@xwt.org>
Thu, 28 Feb 2002 01:03:37 +0000 (01:03 +0000)
committerAdam Megacz <megacz@gcc.gnu.org>
Thu, 28 Feb 2002 01:03:37 +0000 (01:03 +0000)
2002-02-27  Adam Megacz <adam@xwt.org>

        * java/net/natInetAddress.cc: Changed USE_WINSOCK to WIN32, added
        '#undef STRICT'.

From-SVN: r50120

libjava/ChangeLog
libjava/java/net/natInetAddress.cc

index cf3a89e..004c39c 100644 (file)
@@ -1,3 +1,8 @@
+2002-02-27  Adam Megacz <adam@xwt.org>
+
+       * java/net/natInetAddress.cc: Changed USE_WINSOCK to WIN32, added
+       '#undef STRICT'.
+
 2002-02-26  Tom Tromey  <tromey@redhat.com>
 
        * java/lang/natSystem.cc (init_properties): Use __VERSION__.
index cd281fc..15e5db7 100644 (file)
@@ -10,16 +10,17 @@ details.  */
 
 #include <config.h>
 
-#ifdef USE_WINSOCK
+#ifdef WIN32
 
 #include <windows.h>
 #include <winsock.h>
+#undef STRICT
 
 #ifndef MAXHOSTNAMELEN
 #define MAXHOSTNAMELEN 64
 #endif /* MAXHOSTNAMELEN */
 
-#else
+#else /* WIN32 */
 
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
@@ -42,7 +43,7 @@ details.  */
 #include <netdb.h>
 #endif
 
-#endif /* USE_WINSOCK */
+#endif /* WIN32 */
 
 #include <gcj/cni.h>
 #include <jvm.h>