natInetAddress.cc: Changed USE_WINSOCK to WIN32, added '#undef STRICT'.

2002-02-27  Adam Megacz <adam@xwt.org>

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

From-SVN: r50120
This commit is contained in:
Adam Megacz 2002-02-28 01:03:37 +00:00 committed by Adam Megacz
parent 273cf2e462
commit d627547118
2 changed files with 9 additions and 3 deletions

View 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__.

View 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>