summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2004-12-22 21:12:36 +0000
committerbjarni <bjarni@openttd.org>2004-12-22 21:12:36 +0000
commitfb345e983e644ed54dc16419dc86efb39afeaa1a (patch)
tree152ac6fd50333783aaad3a27f3e03b5dda93fd45 /misc.c
parent64e153fc348460aa9f495ca780311d4a8adc0a03 (diff)
downloadopenttd-fb345e983e644ed54dc16419dc86efb39afeaa1a.tar.xz
(svn r1236) MorphOS: added make release like in OSX (tokai)
MorphOS: cleaned up the code telling the difference between AmigaOS and MorphOS (tokai)
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/misc.c b/misc.c
index 8ce6e8ce0..dcb18656d 100644
--- a/misc.c
+++ b/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
}