diff options
author | Max Kellermann <max@musicpd.org> | 2017-12-12 10:22:20 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-12-12 10:22:20 +0100 |
commit | dfaf08743cade4c10c464bfbbb15d8f96c6e5cd9 (patch) | |
tree | 09be190640403b134b8967e1daf0d72445b146ed /test | |
parent | d9552d8a6d2fbc916e5a7bf6e75c2d3b4f29c38e (diff) |
*: 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
Diffstat (limited to 'test')
-rw-r--r-- | test/ShutdownHandler.cxx | 2 | ||||
-rw-r--r-- | test/ShutdownHandler.hxx | 2 | ||||
-rw-r--r-- | test/run_resolver.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/ShutdownHandler.cxx b/test/ShutdownHandler.cxx index 6d69408f3..c0153cfde 100644 --- a/test/ShutdownHandler.cxx +++ b/test/ShutdownHandler.cxx @@ -20,7 +20,7 @@ #include "config.h" #include "ShutdownHandler.hxx" -#ifndef WIN32 +#ifndef _WIN32 #include "event/SignalMonitor.hxx" #include "event/Loop.hxx" diff --git a/test/ShutdownHandler.hxx b/test/ShutdownHandler.hxx index 0e1a18a4e..eb2556364 100644 --- a/test/ShutdownHandler.hxx +++ b/test/ShutdownHandler.hxx @@ -28,7 +28,7 @@ public: ~ShutdownHandler(); }; -#ifdef WIN32 +#ifdef _WIN32 ShutdownHandler::ShutdownHandler(EventLoop &loop) {} ShutdownHandler::~ShutdownHandler() {} #endif diff --git a/test/run_resolver.cxx b/test/run_resolver.cxx index b35ed844a..da8ac7292 100644 --- a/test/run_resolver.cxx +++ b/test/run_resolver.cxx @@ -25,7 +25,7 @@ #include <stdexcept> -#ifdef WIN32 +#ifdef _WIN32 #include <ws2tcpip.h> #include <winsock.h> #else |