Replace fDATIME with ANSI/POSIX clock_gettime(). Rip out DOS/AMIGA shims.
[open-adventure.git] / datime.c
diff --git a/datime.c b/datime.c
deleted file mode 100644 (file)
index c0090e9..0000000
--- a/datime.c
+++ /dev/null
@@ -1,50 +0,0 @@
-#ifdef AMIGA
-#define _TIME_
-#include "exec/types.h"
-#include "intuition/intuition.h"
-
-#define INTUITIONREV 1
-
-struct IntuitionBase *IntuitionBase = NULL;
-
-fDATIME(X,Y)int *X, *Y; {
-static int GOTX = 0, GOTY;
-       if(GOTX == 0) {
-               IntuitionBase = (struct IntuitionBase *)
-                       OpenLibrary("intuition.library", INTUITIONREV);
-               if (IntuitionBase == NULL) {
-                       printf("Can't open library.\n");
-                       exit(FALSE);
-                       }
-               CurrentTime(&GOTX, &GOTY);
-               CloseLibrary(IntuitionBase);
-               }
-       GOTY += 654321;
-       if(GOTY >= 1000000) {GOTX += 1; GOTY -= 1000000;}
-       *X = GOTX;
-       *Y = GOTY;
-}
-#endif
-
-#ifdef __MSDOS__
-#define _TIME_
-#include "time.h"
-
-fDATIME(long *X,long *Y) {
-       time(X); time(Y);
-       *Y /= 2;
-       /* it would be even better if the two numbers were totally
-        * unrelated, like if 'time' returned 64 bits of data */
-}
-#endif
-
-#ifndef _TIME_
-#include "sys/time.h"
-
-void fDATIME(long *X, long *Y) {
-       struct timeval now;
-       gettimeofday(&now, 0);
-       *X = now.tv_sec;
-       *Y = now.tv_usec;
-}
-#endif