Use _WIN32 instead of WIN32 to detect Windows systems.

This commit is contained in:
Bastian Kleineidam 2010-03-31 08:45:21 +02:00
parent c5462d6c58
commit 7802bbbbc4
2 changed files with 3 additions and 2 deletions

View file

@ -2,6 +2,7 @@
Fixes:
- ftp: Fix support for FTP ports other than the default.
- build: Use _WIN32 instead of WIN32 define to detect Windows systems.
Changes:
- checking: Caches are now size-restricted to limit the memory

View file

@ -16,7 +16,7 @@
*/
#include "Python.h"
#ifndef WIN32
#ifndef _WIN32
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <net/route.h>
@ -32,7 +32,7 @@ static PyObject* network_ifreq_size (PyObject* self, PyObject* args)
if (!PyArg_ParseTuple(args, ""))
return NULL;
return Py_BuildValue("i",
#ifdef WIN32
#ifdef _WIN32
0
#else
sizeof(struct ifreq)