1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 07:44:38 +01:00

Use standard platform defines

This commit is contained in:
Ted John
2017-06-12 18:00:15 +01:00
parent 25b6c613b9
commit 7e9f7df7d1
19 changed files with 66 additions and 68 deletions

View File

@@ -54,7 +54,7 @@
#define LAST_SOCKET_ERROR() errno
#define closesocket close
#define ioctlsocket ioctl
#if defined(__LINUX__)
#if defined(__linux__)
#define FLAG_NO_PIPE MSG_NOSIGNAL
#else
#define FLAG_NO_PIPE 0
@@ -457,7 +457,7 @@ private:
static bool SetNonBlocking(SOCKET socket, bool on)
{
#ifdef __WINDOWS__
#ifdef _WIN32
u_long nonBlocking = on;
return ioctlsocket(socket, FIONBIO, &nonBlocking) == 0;
#else
@@ -479,7 +479,7 @@ ITcpSocket * CreateTcpSocket()
bool InitialiseWSA()
{
#ifdef __WINDOWS__
#ifdef _WIN32
if (!_wsaInitialised)
{
log_verbose("Initialising WSA");
@@ -499,7 +499,7 @@ bool InitialiseWSA()
void DisposeWSA()
{
#ifdef __WINDOWS__
#ifdef _WIN32
if (_wsaInitialised)
{
WSACleanup();