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:
Justine Tunney 2024-07-22 07:14:35 -07:00
parent c83ec5fdd9
commit 3de6632be6
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
4 changed files with 8 additions and 7 deletions

View file

@ -24,7 +24,6 @@
* Thunks free() if it's linked, otherwise do nothing.
*/
void _weakfree(void *p) {
if (_weaken(free)) {
if (_weaken(free))
_weaken(free)(p);
}
}