mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
4a59210008
This change improves the way internal APIs are being hidden behind the `COSMO` define. The cosmo.h header will take care of defining that, so that a separate define statement isn't needed. This change also does a lot more to define which APIs are standard, and which belong to Cosmo.
9 lines
299 B
C
9 lines
299 B
C
#ifndef COSMOPOLITAN_LIBC_DOS_H_
|
|
#define COSMOPOLITAN_LIBC_DOS_H_
|
|
|
|
#define DOS_DATE(YEAR, MONTH_IDX1, DAY_IDX1) \
|
|
(((YEAR)-1980) << 9 | (MONTH_IDX1) << 5 | (DAY_IDX1))
|
|
#define DOS_TIME(HOUR, MINUTE, SECOND) \
|
|
((HOUR) << 11 | (MINUTE) << 5 | (SECOND) >> 1)
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_DOS_H_ */
|