[libcxx] Add the missing limits.h header
authorAsiri Rathnayake <asiri.rathnayake@arm.com>
Mon, 10 Oct 2016 08:38:51 +0000 (08:38 +0000)
committerAsiri Rathnayake <asiri.rathnayake@arm.com>
Mon, 10 Oct 2016 08:38:51 +0000 (08:38 +0000)
commit30cd7341d07a94b78864355c64103d41bdbde910
treea44e7c893fc378d41b958e667165263b581e60fe
parented0cca244dc2c590246dc7848aafedf33f33b6e1
[libcxx] Add the missing limits.h header

The implementation of [depr.c.headers] in D12747 introduced the necessary
C headers into libc++. This patch adds one more missing headers: limits.h

We spotted this due to a failing C++03 test [limits_h.pass.cpp] in our libc++
configuration; when the limits.h header is included from a C++ program, it now
bypassed the __config header and went directly into the underlying C library's
limits.h header, which is problematic for us because we use __config header to
configure the underlying C library's behaviour when used from a C++ context.

Reviewers: mclow.lists, rsmith

Differential revision: https://reviews.llvm.org/D25361

llvm-svn: 283726
libcxx/include/limits.h [new file with mode: 0644]