From c673221f773a0a733964653e8d53580f040d6dff Mon Sep 17 00:00:00 2001 From: Aditya Upadhyay Date: Thu, 20 Jul 2017 13:36:05 +0530 Subject: [PATCH 3/6] Importing strtoimax inttypes method from FreeBSD. --- newlib/libc/stdlib/Makefile.am | 1 + newlib/libc/stdlib/strtoimax.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/newlib/libc/stdlib/Makefile.am b/newlib/libc/stdlib/Makefile.am index 534a867b1..30723ed2a 100644 --- a/newlib/libc/stdlib/Makefile.am +++ b/newlib/libc/stdlib/Makefile.am @@ -59,6 +59,7 @@ GENERAL_SOURCES = \ sb_charsets.c \ strtod.c \ strtodg.c \ + strtoimax.c \ strtol.c \ strtorx.c \ strtoul.c \ diff --git a/newlib/libc/stdlib/strtoimax.c b/newlib/libc/stdlib/strtoimax.c index 3e38b850e..82de47c9a 100644 --- a/newlib/libc/stdlib/strtoimax.c +++ b/newlib/libc/stdlib/strtoimax.c @@ -148,5 +148,5 @@ strtoimax_l(const char * __restrict nptr, char ** __restrict endptr, int base, intmax_t strtoimax(const char* __restrict nptr, char** __restrict endptr, int base) { - return _strtoimax_r(_REENT,nptr,endptr, base, __get_current_locale()); + return _strtoimax_r(_REENT, nptr, endptr, base, __get_current_locale()); } -- 2.11.0