mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 04:30:10 +00:00
Add CLK_TCK for atmos
git-svn-id: svn://svn.cc65.org/cc65/trunk@2050 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
c24052fae4
commit
21c7002bed
@ -76,7 +76,15 @@ extern struct _timezone {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#if defined(__CBM__)
|
#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()
|
||||||
|
#elif defined(__ATMOS__)
|
||||||
|
# define CLK_TCK 100 /* POSIX */
|
||||||
|
# define CLOCKS_PER_SEC 100 /* ANSI */
|
||||||
|
#elif defined(__CBM__)
|
||||||
# if defined(__CBM510__) || defined(__CBM610__)
|
# if defined(__CBM510__) || defined(__CBM610__)
|
||||||
/* The 510/610 gets its clock from the AC current */
|
/* The 510/610 gets its clock from the AC current */
|
||||||
# define CLK_TCK 50 /* POSIX */
|
# define CLK_TCK 50 /* POSIX */
|
||||||
@ -87,13 +95,6 @@ extern struct _timezone {
|
|||||||
# endif
|
# endif
|
||||||
#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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
time_t _systime (void);
|
time_t _systime (void);
|
||||||
|
Loading…
Reference in New Issue
Block a user