aboutsummaryrefslogtreecommitdiff
path: root/lib/Headers/limits.h
AgeCommit message (Collapse)Author
2013-10-28Cherry-pick upstream clang r193506: "Define [U]LLONG_{MIN,MAX} for C++11, ↵JF Bastien
add tests." This is needed for libc++ testing with newlib. R=dschuff@chromium.org BUG= https://code.google.com/p/nativeclient/issues/detail?id=3623 TEST= ./pnacl/scripts/llvm-test.py --libcxx-tests Review URL: https://codereview.chromium.org/47573003
2011-09-08Remove WCHAR_MIN and WCHAR_MAX from limits.h. According to posix and c99Eric Christopher
these should be in stdint.h - and they already are. Fixes rdar://10097036. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139332 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-19Implement a __WCHAR_UNSIGNED__ macro and use it to include WCHAR_MIN andSean Hunt
WCHAR_MAX in limits.h, thus solving the problem where the system header thinks it knows better. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135455 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-16Futher reduce the includes of our builtin headers, and teach limits.h to avoidChandler Carruth
include_next when not hosted or unavailable. This follows the pattern in stdint.h and allows these headers to work even in a freestanding configuration without a standard library. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119343 91177308-0d34-0410-b5e6-96231b3b80d8
2009-12-08Pick up MB_LEN_MAX as defined by the system <limits.h>, when it's provided thereDouglas Gregor
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90879 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-01add support for the LONG_LONG_MIN/LONG_LONG_MAX/ULONG_LONG_MAX limits.h GNU ↵Chris Lattner
extensions. rdar://6740292 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68169 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-12Fix limits.h for linux, as glibc does a #include_next unlessMike Stump
_GCC_LIMITS_H_ is defined, when __GNUC__ is defined. Also, we need to stay away from possible conflicts with header guards. We should use CLANG_ to prefix all header guards. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64408 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-06only define MB_LEN_MAX if the system <limits.h> doesn't.Chris Lattner
don't typecast CHAR_MIN to char, this makes it not a PP constant and gives it the wrong unpromoted type. Thanks to Sebastian for pointing this out! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63980 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-06add a stdint.h header.Chris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63977 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-06correct descriptionChris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63947 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-06first hack at limits.hChris Lattner
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63945 91177308-0d34-0410-b5e6-96231b3b80d8