*: check defined(_WIN32) instead of defined(WIN32)

Only _WIN32 is defined by the compiler, and WIN32 is not standardized
and may be missing.

Closes #169
This commit is contained in:
Max Kellermann
2017-12-12 10:22:20 +01:00
parent d9552d8a6d
commit dfaf08743c
91 changed files with 226 additions and 225 deletions

View File

@@ -20,7 +20,7 @@
#include "config.h"
#include "ShutdownHandler.hxx"
#ifndef WIN32
#ifndef _WIN32
#include "event/SignalMonitor.hxx"
#include "event/Loop.hxx"

View File

@@ -28,7 +28,7 @@ public:
~ShutdownHandler();
};
#ifdef WIN32
#ifdef _WIN32
ShutdownHandler::ShutdownHandler(EventLoop &loop) {}
ShutdownHandler::~ShutdownHandler() {}
#endif

View File

@@ -25,7 +25,7 @@
#include <stdexcept>
#ifdef WIN32
#ifdef _WIN32
#include <ws2tcpip.h>
#include <winsock.h>
#else