@@ -30,11 +30,14 @@ #endif #include "unistd_wrapper.h" #include "platform.h" -#ifdef OF_MORPHOS +#ifdef OF_AMIGAOS +# ifdef OF_AMIGAOS3 +# define INTUITION_CLASSES_H +# endif # include #endif #ifdef OF_WII # define nanosleep ogc_nanosleep @@ -82,13 +85,10 @@ #endif #ifdef OF_DJGPP # define lrint(x) rint(x) #endif -#ifdef OF_AMIGAOS3 -# define lrint(x) ((long)x) -#endif #ifdef OF_HAVE_THREADS # import "threading.h" static of_tlskey_t threadSelfKey; @@ -206,11 +206,11 @@ if (rqtp.tv_sec != floor(timeInterval)) @throw [OFOutOfRangeException exception]; nanosleep(&rqtp, NULL); -#elif defined(OF_MORPHOS) +#elif defined(OF_AMIGAOS) if (timeInterval * 50 > ULONG_MAX) @throw [OFOutOfRangeException exception]; Delay(timeInterval * 50); #elif defined(OF_NINTENDO_DS)