mirror of
https://github.com/cc65/cc65.git
synced 2024-09-27 04:54:54 +00:00
Define CLOCKS_PER_SEC as _clocks_per_sec() if _clocks_per_sec() is actually available.
There are programs checking for the existence of CLOCKS_PER_SEC before usage. We don't want to mislead them.
This commit is contained in:
parent
b1f81d5e21
commit
07bd5089ec
@ -98,11 +98,11 @@ extern struct _timezone {
|
|||||||
# define CLOCKS_PER_SEC 50
|
# define CLOCKS_PER_SEC 50
|
||||||
#elif defined(__PCE__)
|
#elif defined(__PCE__)
|
||||||
# define CLOCKS_PER_SEC 60
|
# define CLOCKS_PER_SEC 60
|
||||||
#elif defined(__GAMATE__)
|
#elif defined(__GAMATE__)
|
||||||
# define CLOCKS_PER_SEC 135 /* FIXME */
|
# define CLOCKS_PER_SEC 135 /* FIXME */
|
||||||
#elif defined(__GEOS__)
|
#elif defined(__GEOS__)
|
||||||
# define CLOCKS_PER_SEC 1
|
# define CLOCKS_PER_SEC 1
|
||||||
#else
|
#elif defined(__ATARI__) || defined (__LYNX__)
|
||||||
/* Read the clock rate at runtime */
|
/* Read the clock rate at runtime */
|
||||||
clock_t _clocks_per_sec (void);
|
clock_t _clocks_per_sec (void);
|
||||||
# define CLOCKS_PER_SEC _clocks_per_sec()
|
# define CLOCKS_PER_SEC _clocks_per_sec()
|
||||||
|
Loading…
Reference in New Issue
Block a user