about summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-03-24 21:38:35 +0000
committerUlrich Drepper <drepper@redhat.com>1998-03-24 21:38:35 +0000
commit0669867278c8e633bf5c3e52ded6ea3a2e0034f9 (patch)
treed058b3d2ba515cd147950bace138ca3f50c1060a /posix
parent09515d674a8908521fd2fbc53125c5d25b53e1ac (diff)
downloadglibc-0669867278c8e633bf5c3e52ded6ea3a2e0034f9.tar.gz
glibc-0669867278c8e633bf5c3e52ded6ea3a2e0034f9.tar.xz
glibc-0669867278c8e633bf5c3e52ded6ea3a2e0034f9.zip
Update.
	* posix/regex.c: Undefine ISASCII and ISPRINT before defining for
	Solaris' sake.
Diffstat (limited to 'posix')
-rw-r--r--posix/regex.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/posix/regex.c b/posix/regex.c
index 626244f662..8c259d972a 100644
--- a/posix/regex.c
+++ b/posix/regex.c
@@ -189,8 +189,10 @@ init_syntax_once ()
    STDC_HEADERS is defined, then autoconf has verified that the ctype
    macros don't need to be guarded with references to isascii. ...
    Defining isascii to 1 should let any compiler worth its salt
-   eliminate the && through constant folding."  */
+   eliminate the && through constant folding."
+   Solaris defines some of these symbols so we must undefine them first.  */
 
+#undef ISASCII
 #if defined STDC_HEADERS || (!defined isascii && !defined HAVE_ISASCII)
 # define ISASCII(c) 1
 #else
@@ -208,6 +210,7 @@ init_syntax_once ()
 # define ISGRAPH(c) (ISASCII (c) && isprint (c) && !isspace (c))
 #endif
 
+#undef ISPRINT
 #define ISPRINT(c) (ISASCII (c) && isprint (c))
 #define ISDIGIT(c) (ISASCII (c) && isdigit (c))
 #define ISALNUM(c) (ISASCII (c) && isalnum (c))