summaryrefslogtreecommitdiffstats
path: root/clang/lib/Headers/limits.h
Commit message (Collapse)AuthorAgeFilesLines
* Move the builtin headers to use the new license file header.Chandler Carruth2019-04-081-19/+3
| | | | | | | | | | | | | | | | | | Summary: These all had somewhat custom file headers with different text from the ones I searched for previously, and so I missed them. Thanks to Hal and Kristina and others who prompted me to fix this, and sorry it took so long. Reviewers: hfinkel Subscribers: mcrosier, javed.absar, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D60406 llvm-svn: 357941
* Fix two pedantic issues with our builtin headers. The __STDC_VERSION__Chandler Carruth2014-02-191-1/+1
| | | | | | | | | for C99 is '199901L' and we shouldn't be comparing it with anything else. Neither of these should have had any impact in practice. llvm-svn: 201738
* Remove a broken attempt to cope with someone #undef'ing __has_include_next.Richard Smith2014-02-191-2/+1
| | | | | | | This was broken because __has_include_next(...) would not be valid in a preprocessor condition if __has_include_next is not defined. llvm-svn: 201731
* Define [U]LLONG_{MIN,MAX} for C++11, add tests.JF Bastien2013-10-271-2/+4
| | | | | | Add tests for limits.h, not just [U]LLONG_{MIN,MAX}. llvm-svn: 193506
* Remove WCHAR_MIN and WCHAR_MAX from limits.h. According to posix and c99Eric Christopher2011-09-081-14/+0
| | | | | | | | these should be in stdint.h - and they already are. Fixes rdar://10097036. llvm-svn: 139332
* Implement a __WCHAR_UNSIGNED__ macro and use it to include WCHAR_MIN andAlexis Hunt2011-07-191-0/+14
| | | | | | | WCHAR_MAX in limits.h, thus solving the problem where the system header thinks it knows better. llvm-svn: 135455
* Futher reduce the includes of our builtin headers, and teach limits.h to avoidChandler Carruth2010-11-161-1/+5
| | | | | | | | 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. llvm-svn: 119343
* Pick up MB_LEN_MAX as defined by the system <limits.h>, when it's provided thereDouglas Gregor2009-12-081-1/+0
| | | | llvm-svn: 90879
* add support for the LONG_LONG_MIN/LONG_LONG_MAX/ULONG_LONG_MAX limits.h GNU ↵Chris Lattner2009-04-011-0/+15
| | | | | | | | extensions. rdar://6740292 llvm-svn: 68169
* Fix limits.h for linux, as glibc does a #include_next unlessMike Stump2009-02-121-3/+9
| | | | | | | | | _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. llvm-svn: 64408
* only define MB_LEN_MAX if the system <limits.h> doesn't.Chris Lattner2009-02-061-1/+4
| | | | | | | | 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! llvm-svn: 63980
* add a stdint.h header.Chris Lattner2009-02-061-1/+1
| | | | llvm-svn: 63977
* correct descriptionChris Lattner2009-02-061-3/+2
| | | | llvm-svn: 63947
* first hack at limits.hChris Lattner2009-02-061-0/+91
llvm-svn: 63945
OpenPOWER on IntegriCloud