Commit b188ae0e authored by Max Kellermann's avatar Max Kellermann

system/FileDescriptor: use _WIN32 instead of WIN32

parent c196710f
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#ifndef WIN32 #ifndef _WIN32
#include <poll.h> #include <poll.h>
#endif #endif
...@@ -91,7 +91,7 @@ FileDescriptor::OpenReadOnly(const char *pathname) noexcept ...@@ -91,7 +91,7 @@ FileDescriptor::OpenReadOnly(const char *pathname) noexcept
return Open(pathname, O_RDONLY); return Open(pathname, O_RDONLY);
} }
#ifndef WIN32 #ifndef _WIN32
bool bool
FileDescriptor::OpenNonBlocking(const char *pathname) noexcept FileDescriptor::OpenNonBlocking(const char *pathname) noexcept
...@@ -256,7 +256,7 @@ FileDescriptor::GetSize() const noexcept ...@@ -256,7 +256,7 @@ FileDescriptor::GetSize() const noexcept
: -1; : -1;
} }
#ifndef WIN32 #ifndef _WIN32
int int
FileDescriptor::Poll(short events, int timeout) const noexcept FileDescriptor::Poll(short events, int timeout) const noexcept
......
...@@ -108,7 +108,7 @@ public: ...@@ -108,7 +108,7 @@ public:
bool OpenReadOnly(const char *pathname) noexcept; bool OpenReadOnly(const char *pathname) noexcept;
#ifndef WIN32 #ifndef _WIN32
bool OpenNonBlocking(const char *pathname) noexcept; bool OpenNonBlocking(const char *pathname) noexcept;
#endif #endif
...@@ -201,7 +201,7 @@ public: ...@@ -201,7 +201,7 @@ public:
return ::write(fd, buffer, length); return ::write(fd, buffer, length);
} }
#ifndef WIN32 #ifndef _WIN32
int Poll(short events, int timeout) const noexcept; int Poll(short events, int timeout) const noexcept;
int WaitReadable(int timeout) const noexcept; int WaitReadable(int timeout) const noexcept;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment