mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
fa20edc44d
- Remove most __ASSEMBLER__ __LINKER__ ifdefs - Rename libc/intrin/bits.h to libc/serialize.h - Block pthread cancelation in fchmodat() polyfill - Remove `clang-format off` statements in third_party
14 lines
468 B
C
14 lines
468 B
C
#ifndef COSMOPOLITAN_LIBC_BITS_WEAKEN_H_
|
|
#define COSMOPOLITAN_LIBC_BITS_WEAKEN_H_
|
|
|
|
#ifndef __chibicc__
|
|
#define _weaken(symbol) \
|
|
__extension__({ \
|
|
extern __typeof__(symbol) symbol __attribute__((__weak__)); \
|
|
&symbol; \
|
|
})
|
|
#else
|
|
#define _weaken(symbol) (&(symbol))
|
|
#endif
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_BITS_WEAKEN_H_ */
|