mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-26 02:40:23 +00:00
Use _WIN32 instead of WIN32 to detect Windows systems.
This commit is contained in:
parent
c5462d6c58
commit
7802bbbbc4
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue