misc.c
changeset 770 89dab23f04ca
parent 764 68b398e2b780
child 785 e9ca2bcc9c8f
--- a/misc.c	Wed Dec 22 21:09:45 2004 +0000
+++ b/misc.c	Wed Dec 22 21:12:36 2004 +0000
@@ -107,14 +107,14 @@
 
 // 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 @@
 		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 @@
 			}
 			WaitIO((struct IORequest *)TimerRequest);
 		}
-		#endif // __AMIGAOS__ && !__MORPHOS__
+		#endif // __AMIGA__ 
 	#endif
 }