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 */