From c5b66b40ab3537e2323dbf0d4814fcf12c4dff90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sat, 28 Mar 2015 09:40:29 +0100 Subject: [PATCH] use macro instead of attributes for weak aliases. --- src/system/libroot/posix/arch/x86/fenv.c | 4 ++-- src/system/libroot/posix/glibc/arch/generic/w_dremf.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/libroot/posix/arch/x86/fenv.c b/src/system/libroot/posix/arch/x86/fenv.c index 1884bc1444..b0c657b653 100644 --- a/src/system/libroot/posix/arch/x86/fenv.c +++ b/src/system/libroot/posix/arch/x86/fenv.c @@ -207,5 +207,5 @@ __fedisableexcept(int mask) return (~omask); } -int feenableexcept(int) __attribute__((weak, alias("__feenableexcept"))); -int fedisableexcept(int) __attribute__((weak, alias("__fedisableexcept"))); +__weak_reference(__feenableexcept, feenableexcept); +__weak_reference(__fedisableexcept, fedisableexcept); diff --git a/src/system/libroot/posix/glibc/arch/generic/w_dremf.c b/src/system/libroot/posix/glibc/arch/generic/w_dremf.c index e040d986db..eae446bb04 100644 --- a/src/system/libroot/posix/glibc/arch/generic/w_dremf.c +++ b/src/system/libroot/posix/glibc/arch/generic/w_dremf.c @@ -13,5 +13,5 @@ __dremf(float x, float y) { return __remainderf(x, y); } +weak_alias (__dremf, dremf) -float dremf(float, float) __attribute__((weak, alias("__dremf")));