summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/toupper.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-05-01 00:40:10 +0000
committerbde <bde@FreeBSD.org>1996-05-01 00:40:10 +0000
commit7dbb860b71d5e74ddb0d45595db60de4bc241b0f (patch)
treeb4f19035144b5bb4ec62efb83042948423f85486 /lib/libc/locale/toupper.c
parent5dcde3c31e6bf9d26659951b3186af43009e44d4 (diff)
downloadFreeBSD-src-7dbb860b71d5e74ddb0d45595db60de4bc241b0f.zip
FreeBSD-src-7dbb860b71d5e74ddb0d45595db60de4bc241b0f.tar.gz
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.
Diffstat (limited to 'lib/libc/locale/toupper.c')
-rw-r--r--lib/libc/locale/toupper.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/locale/toupper.c b/lib/libc/locale/toupper.c
index 9e60977..d2e4480 100644
--- a/lib/libc/locale/toupper.c
+++ b/lib/libc/locale/toupper.c
@@ -37,9 +37,9 @@
#include <stdio.h>
#include <rune.h>
-_BSD_RUNE_T_
+_BSD_CT_RUNE_T_
___toupper(c)
- _BSD_RUNE_T_ c;
+ _BSD_CT_RUNE_T_ c;
{
#ifdef XPG4
int x;
@@ -58,4 +58,3 @@ ___toupper(c)
#endif
return(c);
}
-
OpenPOWER on IntegriCloud