@@ -27,19 +27,21 @@ /* Work around __block being used by glibc */ #ifdef __GLIBC__ # undef __USE_XOPEN #endif -#ifndef _WIN32 +#include "platform.h" + +#ifndef OF_WINDOWS # include #endif #ifdef OF_HAVE_SCHED_YIELD # include #endif -#ifdef __wii__ +#ifdef OF_WII # define BOOL OGC_BOOL # define nanosleep ogc_nanosleep # include # undef BOOL # undef nanosleep @@ -52,11 +54,11 @@ #import "OFDate.h" #import "OFDictionary.h" #import "OFAutoreleasePool.h" #import "OFAutoreleasePool+Private.h" -#ifdef _WIN32 +#ifdef OF_WINDOWS # include #endif #ifdef OF_NINTENDO_DS # define asm __asm__ @@ -174,11 +176,11 @@ + (void)sleepForTimeInterval: (of_time_interval_t)timeInterval { if (timeInterval < 0) return; -#if defined(_WIN32) +#if defined(OF_WINDOWS) if (timeInterval * 1000 > UINT_MAX) @throw [OFOutOfRangeException exception]; Sleep((unsigned int)(timeInterval * 1000)); #elif defined(HAVE_NANOSLEEP)