summaryrefslogtreecommitdiff
path: root/stdlib/strtol.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/strtol.c')
-rw-r--r--stdlib/strtol.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/stdlib/strtol.c b/stdlib/strtol.c
index 3f34e390a1..1481d3388e 100644
--- a/stdlib/strtol.c
+++ b/stdlib/strtol.c
@@ -338,6 +338,9 @@ noconv:
/* External user entry point. */
INT
+#ifdef weak_function
+weak_function
+#endif
strtol (nptr, endptr, base)
const STRING_TYPE *nptr;
STRING_TYPE **endptr;
@@ -345,10 +348,3 @@ strtol (nptr, endptr, base)
{
return INTERNAL (strtol) (nptr, endptr, base, 0);
}
-#ifdef weak_symbol
-/* We need to weaken this symbol because some the the defined
- functions do not come from ANSI. The indirection is necessary
- because `strtol' might be a macro. */
-#define weak_this(x) weak_symbol (x)
-weak_this (strtol)
-#endif