From b153931f1833ff80bdd27d9b6ae1dee56d36ed8a Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Mon, 23 Dec 2013 19:21:07 +0000 Subject: 2013-12-22 JF Bastien * libc/include/limits.h: Define LLONG_MIN, LLONG_MAX and ULLONG_MAX for C++11 too. * libc/include/stdlib.h: Define struct lldiv_t, _Exit, atoll, llabs and lldiv for C99 and C++11. Move wcstold to wchar.h. * libc/include/wchar.h: Define WCHAR_MIN and WCHAR_MAX according to __WCHAR_UNSIGNED__ if it is provided, and correct the limit when unsigned (to 32 all-1 bits, not 31). Define FILE as in stdio.h. Move wcstold from stdlib.h here. --- newlib/libc/include/stdlib.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'newlib/libc/include/stdlib.h') diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h index 3b421dd0c..ef218663b 100644 --- a/newlib/libc/include/stdlib.h +++ b/newlib/libc/include/stdlib.h @@ -39,7 +39,9 @@ typedef struct long rem; /* remainder */ } ldiv_t; -#ifndef __STRICT_ANSI__ +#if !defined(__STRICT_ANSI__) || \ + (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \ + (defined(__cplusplus) && __cplusplus >= 201103L) typedef struct { long long int quot; /* quotient */ @@ -233,7 +235,6 @@ _VOID _EXFUN(__eprintf,(const char *, const char *, unsigned int, const char *)) #if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >= 199901L) || (__cplusplus >= 201103L) extern long double strtold (const char *__restrict, char **__restrict); #endif -extern long double wcstold (const wchar_t *, wchar_t **); #endif /* _LDBL_EQ_DBL */ _END_STD_C -- cgit v1.2.3