]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fixed longstanding namespace convolution involving rune_t vs wchar_t.
authorBruce Evans <bde@FreeBSD.org>
Wed, 1 May 1996 00:40:10 +0000 (00:40 +0000)
committerBruce Evans <bde@FreeBSD.org>
Wed, 1 May 1996 00:40:10 +0000 (00:40 +0000)
commitcdd84b02119661919861a0ce13cffa523d3e93a9
treeb4f19035144b5bb4ec62efb83042948423f85486
parent494908b12c364c19a509066a0854da867b467a21
Fixed longstanding namespace convolution involving rune_t vs wchar_t.
If _ANSI_SOURCE or _POSIX_SOURCE is defined, then <ctype.h> had to
be included before <stddef.h> or <stdlib.h> to get rune_t declared.
Now rune_t is declared perfectly bogusly in all cases when <ctype.h>
is included.

This change breaks similar (but more convoluted) convolutions in the
stddef.h in gcc distributions.  Ports of gcc should avoid using the
gcc headers.
include/_ctype.h
include/ctype.h
include/runetype.h
include/stddef.h
include/stdlib.h
lib/libc/locale/runetype.c
lib/libc/locale/tolower.c
lib/libc/locale/toupper.c