This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH 6/6] Deprecate xlocale.h and add bits/types/locale_t.h.
On Wed, Jun 14, 2017 at 11:20 AM, Joseph Myers <email@example.com> wrote:
> I think __locale_t may well be one of the many interfaces that need
> providing under implementation-namespace names for libstdc++ headers to be
> namespace-clean and not require _GNU_SOURCE to implement standard C++
> functionality (but I haven't checked exactly how it's used in libstdc++).
I don't see any existing uses of locale_t or __locale_t under
/usr/include/c++ but I would have no objection to adding a
bits/types/__locale_t.h that provided *only* the impl-namespace name,
even though nothing needs it right now.
It's just that right now xlocale.h insists on exposing both __locale_t
and locale_t, and I think all of the uses of __locale_t in our own
headers could be locale_t.