mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-11 21:49:12 +00:00
Make cosmo.h work a little better
This commit is contained in:
parent
d9df41c4d5
commit
68b9479f0c
12 changed files with 22 additions and 26 deletions
|
@ -1,7 +1,7 @@
|
|||
#ifdef _COSMO_SOURCE
|
||||
#ifndef COSMOPOLITAN_LIBC_X_H_
|
||||
#define COSMOPOLITAN_LIBC_X_H_
|
||||
|
||||
#ifdef _COSMO_SOURCE
|
||||
#define xwrite __xwrite
|
||||
#define xdie __xdie
|
||||
#define xmalloc __xmalloc
|
||||
|
@ -32,9 +32,7 @@
|
|||
#define xfixpath __xfixpath
|
||||
#define xslurp __xslurp
|
||||
#define xbarf __xbarf
|
||||
#endif /* _COSMO_SOURCE */
|
||||
|
||||
#ifdef _COSMO_SOURCE
|
||||
COSMOPOLITAN_C_START_
|
||||
|
||||
int xwrite(int, const void *, uint64_t);
|
||||
|
@ -97,5 +95,5 @@ void *xslurp(const char *, size_t *)
|
|||
int xbarf(const char *, const void *, size_t);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* _COSMO_SOURCE */
|
||||
#endif /* COSMOPOLITAN_LIBC_X_H_ */
|
||||
#endif /* _COSMO_SOURCE */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue