mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-21 21:49:10 +00:00
(svn r1236) MorphOS: added make release like in OSX (tokai)
MorphOS: cleaned up the code telling the difference between AmigaOS and MorphOS (tokai)
This commit is contained in:
14
misc.c
14
misc.c
@@ -107,14 +107,14 @@ void SetDate(uint date)
|
||||
|
||||
// multi os compatible sleep function
|
||||
|
||||
#if defined(__AMIGA__)
|
||||
#ifdef __AMIGA__
|
||||
// usleep() implementation
|
||||
# include <devices/timer.h>
|
||||
# include <dos/dos.h>
|
||||
|
||||
static struct Device *TimerBase = NULL;
|
||||
static struct MsgPort *TimerPort = NULL;
|
||||
static struct timerequest *TimerRequest = NULL;
|
||||
extern struct Device *TimerBase = NULL;
|
||||
extern struct MsgPort *TimerPort = NULL;
|
||||
extern struct timerequest *TimerRequest = NULL;
|
||||
#endif // __AMIGA__
|
||||
|
||||
void CSleep(int milliseconds)
|
||||
@@ -123,13 +123,13 @@ void CSleep(int milliseconds)
|
||||
Sleep(milliseconds);
|
||||
#endif
|
||||
#if defined(UNIX)
|
||||
#if !defined(__BEOS__) && !defined(__AMIGAOS__)
|
||||
#if !defined(__BEOS__) && !defined(__AMIGA__)
|
||||
usleep(milliseconds * 1000);
|
||||
#endif
|
||||
#ifdef __BEOS__
|
||||
snooze(milliseconds * 1000);
|
||||
#endif
|
||||
#if defined(__AMIGAOS__) && !defined(__MORPHOS__)
|
||||
#if defined(__AMIGA__)
|
||||
{
|
||||
ULONG signals;
|
||||
ULONG TimerSigBit = 1 << TimerPort->mp_SigBit;
|
||||
@@ -145,7 +145,7 @@ void CSleep(int milliseconds)
|
||||
}
|
||||
WaitIO((struct IORequest *)TimerRequest);
|
||||
}
|
||||
#endif // __AMIGAOS__ && !__MORPHOS__
|
||||
#endif // __AMIGA__
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user