summaryrefslogtreecommitdiff
path: root/src/system
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-09-13 17:36:48 +0200
committerMax Kellermann <max@musicpd.org>2017-09-13 17:36:48 +0200
commitb188ae0e5cdb32640742dcdd213deeb5e19ac01e (patch)
treeee70c36043e8905a884399b3bf6704c00e12b858 /src/system
parentc196710fae28c67362c81a682ad6a2b5903c9cfa (diff)
system/FileDescriptor: use _WIN32 instead of WIN32
Diffstat (limited to 'src/system')
-rw-r--r--src/system/FileDescriptor.cxx6
-rw-r--r--src/system/FileDescriptor.hxx4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/system/FileDescriptor.cxx b/src/system/FileDescriptor.cxx
index 0e2d3cda5..15348215c 100644
--- a/src/system/FileDescriptor.cxx
+++ b/src/system/FileDescriptor.cxx
@@ -33,7 +33,7 @@
#include <sys/stat.h>
#include <fcntl.h>
-#ifndef WIN32
+#ifndef _WIN32
#include <poll.h>
#endif
@@ -91,7 +91,7 @@ FileDescriptor::OpenReadOnly(const char *pathname) noexcept
return Open(pathname, O_RDONLY);
}
-#ifndef WIN32
+#ifndef _WIN32
bool
FileDescriptor::OpenNonBlocking(const char *pathname) noexcept
@@ -256,7 +256,7 @@ FileDescriptor::GetSize() const noexcept
: -1;
}
-#ifndef WIN32
+#ifndef _WIN32
int
FileDescriptor::Poll(short events, int timeout) const noexcept
diff --git a/src/system/FileDescriptor.hxx b/src/system/FileDescriptor.hxx
index 7a5af768c..02fc0ebfc 100644
--- a/src/system/FileDescriptor.hxx
+++ b/src/system/FileDescriptor.hxx
@@ -108,7 +108,7 @@ public:
bool OpenReadOnly(const char *pathname) noexcept;
-#ifndef WIN32
+#ifndef _WIN32
bool OpenNonBlocking(const char *pathname) noexcept;
#endif
@@ -201,7 +201,7 @@ public:
return ::write(fd, buffer, length);
}
-#ifndef WIN32
+#ifndef _WIN32
int Poll(short events, int timeout) const noexcept;
int WaitReadable(int timeout) const noexcept;