From f952e167d21cf3224cad9ad7a7c6d35021c30e8a Mon Sep 17 00:00:00 2001 From: llucinat Date: Thu, 14 Nov 2019 08:41:10 +0100 Subject: [PATCH] Fix weak reference macro redefinition in wasm32 target --- src/cdefs-compat.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cdefs-compat.h b/src/cdefs-compat.h index 2b20736..38b87c3 100644 --- a/src/cdefs-compat.h +++ b/src/cdefs-compat.h @@ -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)