]> git.sur5r.net Git - cc65/blobdiff - include/time.h
Remove this copy of the apple include file - a copy was added to asminc
[cc65] / include / time.h
index cdb914447b661d9c6b4bd2113064a612424fb724..7cff2d7c32ecd2705af869739e4c5d15f495ee12 100644 (file)
@@ -6,7 +6,7 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2003 Ullrich von Bassewitz                                       */
+/* (C) 1998-2005 Ullrich von Bassewitz                                       */
 /*               Römerstrasse 52                                             */
 /*               D-70794 Filderstadt                                         */
 /* EMail:        uz@cc65.org                                                 */
@@ -39,7 +39,7 @@
 
 
 /* NULL pointer */
-#ifdef _HAVE_NULL   
+#ifndef _HAVE_NULL
 #define NULL   0
 #define _HAVE_NULL
 #endif
@@ -54,7 +54,7 @@ typedef unsigned long time_t;
 typedef unsigned long clock_t;
 
 /* Structure for broken down time */
-struct tm {
+struct tm {     
     int            tm_sec;
     int     tm_min;
     int     tm_hour;
@@ -96,6 +96,9 @@ unsigned _clocks_per_sec (void);
 #elif defined(__NES__)
 #  define CLK_TCK              50      /* POSIX */
 #  define CLOCKS_PER_SEC       50      /* ANSI */
+#elif  defined(__GEOS__)
+#  define CLK_TCK              1       /* POSIX */
+#  define CLOCKS_PER_SEC       1       /* ANSI */
 #endif