mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 07:18:30 +00:00
Remove bad defines from early days of project
These definitions were causing issues with building LLVM. It is possible they also caused crashes we've seen with our MacOS ARM64 OpenMP support.
This commit is contained in:
parent
f25fbbaaeb
commit
5dd7ddb9ea
20 changed files with 568 additions and 140 deletions
|
@ -6,6 +6,12 @@ COSMOPOLITAN_C_START_
|
|||
|
||||
#define ZIPOS_SYNTHETIC_DIRECTORY 0
|
||||
|
||||
#ifndef __cplusplus
|
||||
#define _ZIPOS_ATOMIC(x) _Atomic(x)
|
||||
#else
|
||||
#define _ZIPOS_ATOMIC(x) x
|
||||
#endif
|
||||
|
||||
struct stat;
|
||||
struct iovec;
|
||||
struct Zipos;
|
||||
|
@ -21,8 +27,8 @@ struct ZiposHandle {
|
|||
size_t size;
|
||||
size_t mapsize;
|
||||
size_t cfile;
|
||||
_Atomic(size_t) refs;
|
||||
_Atomic(size_t) pos;
|
||||
_ZIPOS_ATOMIC(size_t) refs;
|
||||
_ZIPOS_ATOMIC(size_t) pos;
|
||||
uint8_t *mem;
|
||||
uint8_t data[];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue