summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
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
}