From 319059d46d9c5a83e58978c2196b1b0b18d8e8a7 Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 25 Jul 2000 20:10:29 +0000 Subject: [PATCH] Added Atari stuff git-svn-id: svn://svn.cc65.org/cc65/trunk@196 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/time.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/include/time.h b/include/time.h index a10969e42..5e996ab99 100644 --- a/include/time.h +++ b/include/time.h @@ -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 */ -- 2.39.5