forked from Mirrors/openclonk
C4NetIO: #ifdef __APPLE__, not APPLE
parent
085ec9de27
commit
e02b2d425f
|
@ -385,7 +385,7 @@ bool C4NetIOTCP::CloseBroadcast()
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef APPLE
|
#ifdef __APPLE__
|
||||||
static int fix_poll_timeout(int timeout) {
|
static int fix_poll_timeout(int timeout) {
|
||||||
if (timeout < 0 || timeout > 1000)
|
if (timeout < 0 || timeout > 1000)
|
||||||
return 1000;
|
return 1000;
|
||||||
|
@ -409,7 +409,7 @@ bool C4NetIOTCP::Execute(int iMaxTime, pollfd *fds) // (mt-safe)
|
||||||
WSANETWORKEVENTS wsaEvents;
|
WSANETWORKEVENTS wsaEvents;
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#ifdef APPLE
|
#ifdef __APPLE__
|
||||||
iMaxTime = fix_poll_timeout(iMaxTime);
|
iMaxTime = fix_poll_timeout(iMaxTime);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1524,7 +1524,7 @@ bool C4NetIOSimpleUDP::Execute(int iMaxTime, pollfd *)
|
||||||
if (!fInit) { SetError("not yet initialized"); return false; }
|
if (!fInit) { SetError("not yet initialized"); return false; }
|
||||||
ResetError();
|
ResetError();
|
||||||
|
|
||||||
#ifdef APPLE
|
#ifdef __APPLE__
|
||||||
iMaxTime = fix_poll_timeout(iMaxTime);
|
iMaxTime = fix_poll_timeout(iMaxTime);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue