base gcc and _GLIBCXX_USE_C99

Dimitry Andric dim at FreeBSD.org
Fri Feb 1 13:08:24 UTC 2013


On 2013-02-01 14:01, Andriy Gapon wrote:
> on 28/01/2013 17:11 Andriy Gapon said the following:
>> I wonder why the following is the case for the base gcc.
>> /usr/include/c++/4.2/bits/c++config.h:
>>
>> /* Define if C99 functions or macros from <wchar.h>, <math.h>, <complex.h>,
>>     <stdio.h>, and <stdlib.h> can be used or exposed. */
>> /* #undef _GLIBCXX_USE_C99 */
>>
>> Because of this undef there is no e.g. std::strtoll().
>> Ditto for other things in stdlib.h.

Maybe this support can't be enabled, because we don't expose all the
required functions yet?  Or maybe it is just something that was
committed years ago, and then forgotten.

If we are sure that all the C99 functions libstdc++ requires are now
available and working, I see no problem in turning on _GLIBCXX_USE_C99.


More information about the freebsd-toolchain mailing list