public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/47045] New: NetBSD: define changes in ctype.h
@ 2010-12-22 23:54 tk at giga dot or.at
  2010-12-23  1:41 ` [Bug libstdc++/47045] " redi at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: tk at giga dot or.at @ 2010-12-22 23:54 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47045

           Summary: NetBSD: define changes in ctype.h
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: tk@giga.or.at


A few days ago, Joerg Sonnenberger improved the name space of NetBSD's ctype.h.
He added "_CTYPE" before "_U", "_N", etc.

The commit message can be seen in
http://mail-index.netbsd.org/source-changes/2010/12/14/msg015830.html
the change to ctype_bits.h:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/sys/ctype_bits.h.diff?r1=1.1&r2=1.2&only_with_tag=MAIN
the change to gcc's ctype_base.h as distributed with NetBSD-current:
http://cvsweb.netbsd.org/bsdweb.cgi/src/gnu/dist/gcc4/libstdc++-v3/config/os/bsd/netbsd/ctype_base.h.diff?r1=1.1&r2=1.2&only_with_tag=MAIN

I'd like to see this integrated into one of the next gcc releases.
Since all current releases and older development releases of NetBSD (earlier
than 5.99.41) still have _U etc. it's probably a bit harder than just taking
the change as above.

I'm not sure how you want to do that exactly.

You can test for the older NetBSD versions with _U etc. with:
#include <sys/param.h>
#if __NetBSD_Version__ < 599004100
...
#endif


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-01-13  0:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-22 23:54 [Bug libstdc++/47045] New: NetBSD: define changes in ctype.h tk at giga dot or.at
2010-12-23  1:41 ` [Bug libstdc++/47045] " redi at gcc dot gnu.org
2010-12-23  9:35 ` tk at giga dot or.at
2010-12-23 10:01 ` redi at gcc dot gnu.org
2010-12-24  1:32 ` redi at gcc dot gnu.org
2011-01-11 16:33 ` paolo.carlini at oracle dot com
2011-01-11 16:35 ` redi at gcc dot gnu.org
2011-01-11 16:53 ` paolo.carlini at oracle dot com
2011-01-13  0:26 ` redi at gcc dot gnu.org
2011-01-13  0:28 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).