This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [c++] Keep tm, div_t, ldiv_t, lconv mangling on Solaris (PR libstdc++-v3/1773)
Marc,
> On Thu, 11 Aug 2011, Rainer Orth wrote:
>
>> I could, but am a bit reluctant to do so since such a fix feels quite
>> fragile, and `fixes' the Solaris headers in many places where they are
>> completely correct. I'll also have to touch <time.h>, <wchar.h>,
>> <stdlib.h>, and <locale.h>, that all have using std::tm etc. clauses.
>
> Actually, you wouldn't need to touch those other places:
>
> struct tm;
> namespace std { using ::tm; }
> using std::tm;
>
> is perfectly ok, so it would really be only the four struct declarations.
good to know. I hadn't tried this yet, and am practically ignorant of
C++ ;-)
> (I am not saying that against your proposal below at all, just making sure
> we understand the issue)
Understood, especially given that the mangling code is yours :-)
Thanks.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
- References:
- [c++] Keep tm, div_t, ldiv_t, lconv mangling on Solaris (PR libstdc++-v3/1773)
- Re: [c++] Keep tm, div_t, ldiv_t, lconv mangling on Solaris (PR libstdc++-v3/1773)
- Re: [c++] Keep tm, div_t, ldiv_t, lconv mangling on Solaris (PR libstdc++-v3/1773)
- Re: [c++] Keep tm, div_t, ldiv_t, lconv mangling on Solaris (PR libstdc++-v3/1773)
- Re: [c++] Keep tm, div_t, ldiv_t, lconv mangling on Solaris (PR libstdc++-v3/1773)
- Re: [c++] Keep tm, div_t, ldiv_t, lconv mangling on Solaris (PR libstdc++-v3/1773)