mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 16:58:30 +00:00
Graduate some clock_gettime() constants to #define
- CLOCK_THREAD_CPUTIME_ID - CLOCK_PROCESS_CPUTIME_ID Cosmo now supports the above constants universally across supported OSes therefore it's now safe to let programs detect their presence w/ #ifdefs
This commit is contained in:
parent
c83ec5fdd9
commit
3de6632be6
4 changed files with 8 additions and 7 deletions
|
@ -24,7 +24,9 @@ extern const int CLOCK_UPTIME_PRECISE;
|
|||
|
||||
COSMOPOLITAN_C_END_
|
||||
|
||||
#define CLOCK_REALTIME 0
|
||||
#define CLOCK_MONOTONIC CLOCK_MONOTONIC
|
||||
#define CLOCK_REALTIME 0
|
||||
#define CLOCK_MONOTONIC CLOCK_MONOTONIC
|
||||
#define CLOCK_PROCESS_CPUTIME_ID CLOCK_PROCESS_CPUTIME_ID
|
||||
#define CLOCK_THREAD_CPUTIME_ID CLOCK_THREAD_CPUTIME_ID
|
||||
|
||||
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_CLOCK_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue