mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-28 04:23:41 +01:00
Merge pull request #199 from llucinat/wasm32-weakref
Fix weak reference macro redefinition in wasm32 target
This commit is contained in:
commit
f731481b25
1 changed files with 2 additions and 4 deletions
|
@ -26,10 +26,8 @@
|
||||||
#endif /* __strong_reference */
|
#endif /* __strong_reference */
|
||||||
|
|
||||||
#ifdef __wasm__
|
#ifdef __wasm__
|
||||||
# define openlibm_weak_reference(sym,alias) openlibm_strong_reference(sym,alias)
|
#define openlibm_weak_reference(sym,alias) openlibm_strong_reference(sym,alias)
|
||||||
#endif
|
#elif defined(__weak_alias) && defined(__NetBSD__)
|
||||||
|
|
||||||
#if defined(__weak_alias) && defined(__NetBSD__)
|
|
||||||
#define openlibm_weak_reference(sym,alias) __weak_alias(alias,sym)
|
#define openlibm_weak_reference(sym,alias) __weak_alias(alias,sym)
|
||||||
#elif defined(__weak_reference)
|
#elif defined(__weak_reference)
|
||||||
#define openlibm_weak_reference(sym,alias) __weak_reference(sym,alias)
|
#define openlibm_weak_reference(sym,alias) __weak_reference(sym,alias)
|
||||||
|
|
Loading…
Reference in a new issue