Patch #1495999: Part two of Windows CE changes.

- update header checks, using autoconf
- provide dummies for getenv, environ, and GetVersion
- adjust MSC_VER check in socketmodule.c
This commit is contained in:
Martin v. Löwis 2006-06-10 12:23:46 +00:00
parent acd0d6d416
commit 0e8bd7e1cc
26 changed files with 201 additions and 33 deletions

View file

@ -234,7 +234,9 @@ shutdown(how) -- shut down traffic in one or both directions\n\
#endif
/* Generic includes */
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
/* Generic socket object definitions and includes */
#define PySocket_BUILDING_SOCKET
@ -270,7 +272,9 @@ int h_errno; /* not used */
#else
/* MS_WINDOWS includes */
# include <fcntl.h>
# ifdef HAVE_FCNTL_H
# include <fcntl.h>
# endif
#endif
@ -290,7 +294,7 @@ int h_errno; /* not used */
* _SS_ALIGNSIZE is defined in sys/socket.h by 6.5.21,
* for example, but not by 6.5.10.
*/
#elif defined(_MSC_VER) && _MSC_VER>1200
#elif defined(_MSC_VER) && _MSC_VER>1201
/* Do not include addrinfo.h for MSVC7 or greater. 'addrinfo' and
* EAI_* constants are defined in (the already included) ws2tcpip.h.
*/