diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2013-12-23 19:21:07 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2013-12-23 19:21:07 +0000 |
commit | b153931f1833ff80bdd27d9b6ae1dee56d36ed8a (patch) | |
tree | ee1726f7e2363dc34123c26de5922f636a953247 /newlib/libc/include/limits.h | |
parent | 2d15421aa8f802cd987098fe6d13462c0b383c1a (diff) | |
download | cygnal-b153931f1833ff80bdd27d9b6ae1dee56d36ed8a.tar.gz cygnal-b153931f1833ff80bdd27d9b6ae1dee56d36ed8a.tar.bz2 cygnal-b153931f1833ff80bdd27d9b6ae1dee56d36ed8a.zip |
2013-12-22 JF Bastien <jfb@chromium.org>
* 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.
Diffstat (limited to 'newlib/libc/include/limits.h')
-rw-r--r-- | newlib/libc/include/limits.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/include/limits.h b/newlib/libc/include/limits.h index 19868a6ad..190f1f783 100644 --- a/newlib/libc/include/limits.h +++ b/newlib/libc/include/limits.h @@ -96,7 +96,8 @@ # define __LONG_LONG_MAX__ 9223372036854775807LL # endif -# if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +# if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \ + (defined(__cplusplus) && __cplusplus >= 201103L) /* Minimum and maximum values a `signed long long int' can hold. */ # undef LLONG_MIN # define LLONG_MIN (-LLONG_MAX-1) @@ -143,4 +144,3 @@ #ifndef PATH_MAX #define PATH_MAX 4096 #endif - |