summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-12-12 10:22:20 +0100
committerMax Kellermann <max@musicpd.org>2017-12-12 10:22:20 +0100
commitdfaf08743cade4c10c464bfbbb15d8f96c6e5cd9 (patch)
tree09be190640403b134b8967e1daf0d72445b146ed /src/client
parentd9552d8a6d2fbc916e5a7bf6e75c2d3b4f29c38e (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 'src/client')
-rw-r--r--src/client/ClientFile.cxx2
-rw-r--r--src/client/ClientMessage.hxx2
-rw-r--r--src/client/ClientNew.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/client/ClientFile.cxx b/src/client/ClientFile.cxx
index 03827890d..e38974dee 100644
--- a/src/client/ClientFile.cxx
+++ b/src/client/ClientFile.cxx
@@ -28,7 +28,7 @@
void
Client::AllowFile(Path path_fs) const
{
-#ifdef WIN32
+#ifdef _WIN32
(void)path_fs;
throw ProtocolError(ACK_ERROR_PERMISSION, "Access denied");
diff --git a/src/client/ClientMessage.hxx b/src/client/ClientMessage.hxx
index b665cd65e..1da871a60 100644
--- a/src/client/ClientMessage.hxx
+++ b/src/client/ClientMessage.hxx
@@ -24,7 +24,7 @@
#include <string>
-#ifdef WIN32
+#ifdef _WIN32
/* fuck WIN32! */
#include <windows.h>
#undef GetMessage
diff --git a/src/client/ClientNew.cxx b/src/client/ClientNew.cxx
index 42ccadb63..1bb5b0e3d 100644
--- a/src/client/ClientNew.cxx
+++ b/src/client/ClientNew.cxx
@@ -29,7 +29,7 @@
#include "Log.hxx"
#include <assert.h>
-#ifdef WIN32
+#ifdef _WIN32
#include <winsock2.h>
#else
#include <sys/socket.h>