[PATCH 2/3] libstdc++-v3: ::tmpnam depends on uClibc SUSV4_LEGACY
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Fri Apr 5 10:23:00 GMT 2013
Gabriel Dos Reis <gdr@integrable-solutions.net> writes:
>> diff --git a/libstdc++-v3/include/c_global/cstdio b/libstdc++-v3/include/c_global/cstdio
>> index fcbec0c..037a668 100644
>> --- a/libstdc++-v3/include/c_global/cstdio
>> +++ b/libstdc++-v3/include/c_global/cstdio
>> @@ -131,7 +131,9 @@ namespace std
>> using ::sprintf;
>> using ::sscanf;
>> using ::tmpfile;
>> +#if !defined __UCLIBC__ || defined __UCLIBC_SUSV4_LEGACY__
>> using ::tmpnam;
>> +#endif
>> using ::ungetc;
>> using ::vfprintf;
>> using ::vprintf;
>> --
>> 1.7.10.4
>>
>
> Sounds good to me.
Do we really want to use target-specific macros directly instead of
defining something more abstract either via a configure test or a define
in config/os/uclibc?
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
More information about the Gcc-patches
mailing list