Some VS 6.0 compatibility fixes from Hirokazu Yamamoto which are also useful for later versions of MSVC. VS6 claims that fortran is a reserved word

This commit is contained in:
Christian Heimes 2008-01-04 13:33:00 +00:00
parent 8fd7b0c1a7
commit c36625b05d
6 changed files with 19 additions and 6 deletions

View file

@ -5,6 +5,7 @@
/* Windows socket errors (WSA*) */
#ifdef MS_WINDOWS
#define WIN32_LEAN_AND_MEAN
#include <winsock.h>
#endif

View file

@ -44,6 +44,7 @@ extern void bzero(void *, int);
#endif
#ifdef MS_WINDOWS
# define WIN32_LEAN_AND_MEAN
# include <winsock.h>
#else
# define SOCKET int

View file

@ -22,6 +22,7 @@
# define HAVE_GETNAMEINFO
# define ENABLE_IPV6
#else
# define WIN32_LEAN_AND_MEAN
# include <winsock.h>
#endif
#endif