mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2025-01-01 06:23:39 +01:00
Fix __weak_reference for clang [closes #9]
This commit is contained in:
parent
56811b0809
commit
4b078ee343
1 changed files with 9 additions and 3 deletions
|
@ -50,9 +50,15 @@
|
||||||
__asm__(".previous")
|
__asm__(".previous")
|
||||||
#endif /* __STDC__ */
|
#endif /* __STDC__ */
|
||||||
#elif defined(__clang__) /* CLANG */
|
#elif defined(__clang__) /* CLANG */
|
||||||
#define __weak_reference(sym,alias) \
|
#ifdef __STDC__
|
||||||
__asm__(".weak_reference alias");\
|
#define __weak_reference(sym,alias) \
|
||||||
__asm__(".set alias, sym")
|
__asm__(".weak_reference " #alias); \
|
||||||
|
__asm__(".set " #alias ", " #sym)
|
||||||
|
#else
|
||||||
|
#define __weak_reference(sym,alias) \
|
||||||
|
__asm__(".weak_reference alias");\
|
||||||
|
__asm__(".set alias, sym")
|
||||||
|
#endif
|
||||||
#else /* !__ELF__ */
|
#else /* !__ELF__ */
|
||||||
#ifdef __STDC__
|
#ifdef __STDC__
|
||||||
#define __weak_reference(sym,alias) \
|
#define __weak_reference(sym,alias) \
|
||||||
|
|
Loading…
Reference in a new issue