<p dir="ltr">Please add a test for this. Otherwise LGTM.</p>
<div class="gmail_quote">On 22 Oct 2013 16:02, "JF Bastien" <<a href="mailto:jfb@google.com">jfb@google.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">C99 has LLONG_MIN, LLONG_MAX, ULLONG_MAX and so does C++11. Teach clang's limits.h about it.<div><br></div><div><div>diff --git a/lib/Headers/limits.h b/lib/Headers/limits.h</div><div>index ecd09a4..91bd404 100644</div>
<div>--- a/lib/Headers/limits.h</div><div>+++ b/lib/Headers/limits.h</div><div>@@ -87,8 +87,10 @@</div><div> #define CHAR_MAX __SCHAR_MAX__</div><div> #endif</div><div> </div><div>-/* C99 5.2.4.2.1: Added long long. */</div>
<div>-#if __STDC_VERSION__ >= 199901</div><div>+/* C99 5.2.4.2.1: Added long long.</div><div>+ C++11 <a href="http://18.3.3.2" target="_blank">18.3.3.2</a>: same contents as the Standard C Library header <limits.h>.</div>
<div>
+ */</div><div>+#if __STDC_VERSION__ >= 199901 || __cplusplus >= 201103L</div><div> </div><div> #undef LLONG_MIN</div><div> #undef LLONG_MAX</div></div><div><br></div></div>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div>