1
0
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:
Oliver Schmidt 2021-05-09 19:27:33 +02:00
parent b1f81d5e21
commit 07bd5089ec

View File

@ -98,11 +98,11 @@ extern struct _timezone {
# define CLOCKS_PER_SEC 50
#elif defined(__PCE__)
# define CLOCKS_PER_SEC 60
#elif defined(__GAMATE__)
#elif defined(__GAMATE__)
# define CLOCKS_PER_SEC 135 /* FIXME */
#elif defined(__GEOS__)
#elif defined(__GEOS__)
# define CLOCKS_PER_SEC 1
#else
#elif defined(__ATARI__) || defined (__LYNX__)
/* Read the clock rate at runtime */
clock_t _clocks_per_sec (void);
# define CLOCKS_PER_SEC _clocks_per_sec()