summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-15 08:20:29 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-15 08:20:29 -0500
commit48621083e37dcce18e017e840d79e668b5b380de (patch)
treeb599f9612bdad6672d1e9f451ba34ff7b04556c3
parent38da6ce9fb7386ce5f74a40a94a3aa9d6d96e594 (diff)
downloadgcompat-48621083e37dcce18e017e840d79e668b5b380de.tar.gz
gcompat-48621083e37dcce18e017e840d79e668b5b380de.tar.bz2
gcompat-48621083e37dcce18e017e840d79e668b5b380de.tar.xz
gcompat-48621083e37dcce18e017e840d79e668b5b380de.zip
math: Add weak aliases for non-__ prefix is{inf,nan}{,f}
-rw-r--r--libgcompat/math.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libgcompat/math.c b/libgcompat/math.c
index bacec36..2c793e4 100644
--- a/libgcompat/math.c
+++ b/libgcompat/math.c
@@ -19,3 +19,8 @@ int __isnan(double number)
{
return isnan(number);
}
+
+extern __typeof(__isnanf) isnanf __attribute__((weak, alias("__isnanf")));
+extern __typeof(__isnan) isnan __attribute__((weak, alias("__isnan")));
+extern __typeof(__isinff) isinff __attribute__((weak, alias("__isinff")));
+extern __typeof(__isinf) isinf __attribute__((weak, alias("__isinf")));