From c6a737210ae990bc8352fd49f155c1ea1e8c07a4 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Wed, 8 Oct 2008 14:06:07 +0000 Subject: - Fix strtol*() with xlocale (on e.g. x86_64) (closes #2544) --- libc/stdlib/stdlib.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libc/stdlib/stdlib.c') diff --git a/libc/stdlib/stdlib.c b/libc/stdlib/stdlib.c index 68796656a..d72b80941 100644 --- a/libc/stdlib/stdlib.c +++ b/libc/stdlib/stdlib.c @@ -65,7 +65,7 @@ #ifdef L_wcstoul #define wcstoull __ignore_wcstoull #endif -#ifdef strtol_l +#ifdef L_strtol_l #define strtoll_l __ignore_strtoll_l #endif #ifdef L_strtoul_l @@ -344,7 +344,7 @@ strong_alias(strtol,strtoimax) #else #undef strtoll #endif -extern __typeof(strtol) __XL_NPP(strtoll); +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)) @@ -397,7 +397,7 @@ strong_alias(strtoul,strtoumax) #else #undef strtoull #endif -extern __typeof(strtoul) __XL_NPP(strtoull); +extern __typeof(__XL_NPP(strtoul)) __XL_NPP(strtoull); libc_hidden_proto(__XL_NPP(strtoull)) strong_alias(__XL_NPP(strtoul),__XL_NPP(strtoull)) libc_hidden_def(__XL_NPP(strtoull)) @@ -1090,7 +1090,7 @@ strong_alias(wcstol,wcstoimax) #else #undef wcstoll #endif -extern __typeof(wcstol) __XL_NPP(wcstoll); +extern __typeof(__XL_NPP(wcstol)) __XL_NPP(wcstoll); libc_hidden_proto(__XL_NPP(wcstoll)) strong_alias(__XL_NPP(wcstol),__XL_NPP(wcstoll)) libc_hidden_def(__XL_NPP(wcstoll)) @@ -1143,7 +1143,7 @@ strong_alias(wcstoul,wcstoumax) #else #undef wcstoull #endif -extern __typeof(wcstoul) __XL_NPP(wcstoull); +extern __typeof(__XL_NPP(wcstoul)) __XL_NPP(wcstoull); libc_hidden_proto(__XL_NPP(wcstoull)) strong_alias(__XL_NPP(wcstoul),__XL_NPP(wcstoull)) libc_hidden_def(__XL_NPP(wcstoull)) -- cgit v1.2.3