Remove stdio lock macros from amalgamation

This commit is contained in:
Justine Tunney 2022-09-10 11:55:39 -07:00
parent 333768440c
commit cdb2284f0d
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
62 changed files with 59 additions and 180 deletions

View file

@ -4,8 +4,6 @@
#if !(__ASSEMBLER__ + __LINKER__ + 0)
COSMOPOLITAN_C_START_
bool _lockcmpxchg(void *, intptr_t, intptr_t, size_t);
#if defined(__GNUC__) && !defined(__STRICT_ANSI__) && defined(__x86__)
#define _lockcmpxchg(IFTHING, ISEQUALTOME, REPLACEITWITHME) \
({ \
@ -19,9 +17,6 @@ bool _lockcmpxchg(void *, intptr_t, intptr_t, size_t);
: "cc"); \
DidIt; \
})
#else
#define _lockcmpxchg(MEM, CMP, VAL) \
_lockcmpxchg(MEM, (intptr_t)(CMP), (intptr_t)(VAL), sizeof(*(MEM)))
#endif /* GNUC && !ANSI && x86 */
COSMOPOLITAN_C_END_