]> git.sur5r.net Git - cc65/commitdiff
Added Atari stuff
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 25 Jul 2000 20:10:29 +0000 (20:10 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 25 Jul 2000 20:10:29 +0000 (20:10 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@196 b7a2c559-68d2-44c3-8de9-860c34a00d81

include/time.h

index a10969e42c2149f608e77c5c0dbbf9017ea59d95..5e996ab99261969dec7ee4fa6a09b8ee4f6777a1 100644 (file)
@@ -53,16 +53,16 @@ struct tm {
     int tm_min;
     int tm_hour;
     int tm_mday;
-    int tm_mon;                  
+    int tm_mon;
     int tm_year;
     int tm_wday;
     int tm_yday;
     int tm_isdst;
 };
 
+#if defined(__CBM__)
+#  if defined(__CBM610__)
 /* The 610 gets its clock from the AC current */
-#ifdef __CBM__
-#  ifdef __CBM610__
 #    define CLK_TCK                    50      /* POSIX */
 #    define CLOCKS_PER_SEC     50      /* ANSI */
 #  else
@@ -71,6 +71,13 @@ struct tm {
 #  endif
 #endif
 
+#if defined(__ATARI__)
+/* The clock depends on the video standard, so read it at runtime */
+unsigned _clocks_per_sec (void);
+#  define CLK_TCK              _clocks_per_sec()
+#  define CLOCKS_PER_SEC       _clocks_per_sec()
+#endif
+
 
 
 /* Function prototypes */