system/FileDescriptor: use _WIN32 instead of WIN32

This commit is contained in:
Max Kellermann 2017-09-13 17:36:48 +02:00
parent c196710fae
commit b188ae0e5c
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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;