From 78009d25addb8487702f902ed4ad581a5004bfe9 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 26 Nov 2010 14:49:56 +0000 Subject: libc: fix strtoq strtoq should always return a quad_t and be an alias of strtol on 64 bit and strtoll on 32 bit. Signed-off-by: Natanael Copa Signed-off-by: Bernhard Reutner-Fischer --- libc/stdlib/stdlib.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libc/stdlib/stdlib.c') diff --git a/libc/stdlib/stdlib.c b/libc/stdlib/stdlib.c index ad0c4aac0..4d608eeac 100644 --- a/libc/stdlib/stdlib.c +++ b/libc/stdlib/stdlib.c @@ -342,6 +342,9 @@ extern __typeof(__XL_NPP(strtol)) __XL_NPP(strtoll); libc_hidden_proto(__XL_NPP(strtoll)) strong_alias(__XL_NPP(strtol),__XL_NPP(strtoll)) libc_hidden_def(__XL_NPP(strtoll)) +#if !defined(L_strtol_l) +strong_alias(strtol,strtoq) +#endif #endif #endif -- cgit v1.2.3