C4NetIO: #ifdef __APPLE__, not APPLE

stable-5.4
Martin Plicht 2014-02-16 14:28:01 +01:00
parent ce56d6a681
commit 75f3fb2d70
1 changed files with 3 additions and 3 deletions

View File

@ -385,7 +385,7 @@ bool C4NetIOTCP::CloseBroadcast()
return true;
}
#ifdef APPLE
#ifdef __APPLE__
static int fix_poll_timeout(int timeout) {
if (timeout < 0 || timeout > 1000)
return 1000;
@ -409,7 +409,7 @@ bool C4NetIOTCP::Execute(int iMaxTime, pollfd *fds) // (mt-safe)
WSANETWORKEVENTS wsaEvents;
#else
#ifdef APPLE
#ifdef __APPLE__
iMaxTime = fix_poll_timeout(iMaxTime);
#endif
@ -1524,7 +1524,7 @@ bool C4NetIOSimpleUDP::Execute(int iMaxTime, pollfd *)
if (!fInit) { SetError("not yet initialized"); return false; }
ResetError();
#ifdef APPLE
#ifdef __APPLE__
iMaxTime = fix_poll_timeout(iMaxTime);
#endif