mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-04 18:28:30 +00:00
Do some basic build tuning
This commit is contained in:
parent
57cc257f58
commit
8303e23b3a
9 changed files with 62 additions and 18 deletions
|
@ -4,7 +4,11 @@
|
|||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
#ifndef __STRICT_ANSI__
|
||||
|
||||
#define _weaken(symbol) ((const typeof(&(symbol)))_weakaddr(#symbol))
|
||||
#define _weaken(symbol) \
|
||||
({ \
|
||||
asm(".weak\t" #symbol); \
|
||||
&symbol; \
|
||||
})
|
||||
|
||||
#define _strongaddr(symbolstr) \
|
||||
({ \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue