[cfe-commits] [patch] Conditionalize use of 'long long' for libc++
Dimitry Andric
dimitry at andric.com
Sun Nov 25 09:24:56 PST 2012
Hi,
When using libc++ headers on FreeBSD, in combination with -std=c++98,
-ansi or -std=c++03, the long long type is not supported. So in this
case, several functions and types, like lldiv_t, strtoll(), are not
declared.
The attached patch conditionalizes those types and functions for libc++,
using a _LIBCPP_HAS_NO_LONG_LONG define. This can easily be extended
to other operating systems.
-Dimitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libcxx-long-long-1.diff
Type: text/x-diff
Size: 2843 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121125/1a96aa80/attachment.diff>
More information about the cfe-commits
mailing list