Merge pull request #199 from llucinat/wasm32-weakref

Fix weak reference macro redefinition in wasm32 target
This commit is contained in:
Viral B. Shah 2019-11-15 06:44:47 -05:00 committed by GitHub
commit f731481b25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,10 +26,8 @@
#endif /* __strong_reference */
#ifdef __wasm__
# define openlibm_weak_reference(sym,alias) openlibm_strong_reference(sym,alias)
#endif
#if defined(__weak_alias) && defined(__NetBSD__)
#define openlibm_weak_reference(sym,alias) openlibm_strong_reference(sym,alias)
#elif defined(__weak_alias) && defined(__NetBSD__)
#define openlibm_weak_reference(sym,alias) __weak_alias(alias,sym)
#elif defined(__weak_reference)
#define openlibm_weak_reference(sym,alias) __weak_reference(sym,alias)