mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
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:
parent
8fd7b0c1a7
commit
c36625b05d
6 changed files with 19 additions and 6 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
/* Windows socket errors (WSA*) */
|
||||
#ifdef MS_WINDOWS
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <winsock.h>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
# define HAVE_GETNAMEINFO
|
||||
# define ENABLE_IPV6
|
||||
#else
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# include <winsock.h>
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue