mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Introduce #include <cosmo.h>
to toolchain users
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.
This commit is contained in:
parent
9b55dbe417
commit
4a59210008
115 changed files with 699 additions and 422 deletions
|
@ -2,17 +2,6 @@
|
|||
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_TIMEVAL_H_
|
||||
#include "libc/calls/struct/timespec.h"
|
||||
#include "libc/time/struct/timezone.h"
|
||||
|
||||
#ifdef COSMO
|
||||
#define timeval_cmp __timeval_cmp
|
||||
#define timeval_frommicros __timeval_frommicros
|
||||
#define timeval_frommillis __timeval_frommillis
|
||||
#define timeval_add __timeval_add
|
||||
#define timeval_sub __timeval_sub
|
||||
#define timespec_totimeval __timespec_totimeval
|
||||
#define timeval_totimespec __timeval_totimespec
|
||||
#endif /* COSMO */
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue