From beb08d42ba2bb3cc2b8c68c24485bf2f58fc0e5b Mon Sep 17 00:00:00 2001
From: hniksic <devnull@localhost>
Date: Thu, 18 Sep 2003 04:39:22 -0700
Subject: [PATCH] [svn] Don't #define ctype.h macros to errors.

---
 src/ChangeLog    |  5 +++++
 src/safe-ctype.h | 16 ++++------------
 2 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/src/ChangeLog b/src/ChangeLog
index 02db34a7..76a4cbb7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2003-09-18  Hrvoje Niksic  <hniksic@xemacs.org>
+
+	* safe-ctype.h: Don't #define ctype.h macros to errors because
+	that loses when someone #include's ctype.h after safe-ctype.h.
+
 2003-09-17  Hrvoje Niksic  <hniksic@xemacs.org>
 
 	* url.c: Undef U, W, C after use.
diff --git a/src/safe-ctype.h b/src/safe-ctype.h
index 17ced521..5e8878c4 100644
--- a/src/safe-ctype.h
+++ b/src/safe-ctype.h
@@ -51,30 +51,22 @@ so, delete this exception statement from your version.  */
 
 #ifndef I_REALLY_WANT_CTYPE_MACROS
 
+/* We used to #define these to errors, but that loses when real
+   ctype.h is included, usually by a library's (OpenSSL's) header
+   which gets #included after wget.h.  */
+
 #undef isalpha
-#define isalpha *** Please use ISALPHA ***
 #undef isalnum
-#define isalnum *** Please use ISALNUM ***
 #undef isblank
-#define isblank *** Please use ISBLANK ***
 #undef iscntrl
-#define iscntrl *** Please use ISCNTRL ***
 #undef isdigit
-#define isdigit *** Please use ISDIGIT ***
 #undef isgraph
-#define isgraph *** Please use ISGRAPH ***
 #undef islower
-#define islower *** Please use ISLOWER ***
 #undef isprint
-#define isprint *** Please use ISPRINT ***
 #undef ispunct
-#define ispunct *** Please use ISPUNCT ***
 #undef isspace
-#define isspace *** Please use ISSPACE ***
 #undef isupper
-#define isupper *** Please use ISUPPER ***
 #undef isxdigit
-#define isxdigit *** Please use ISXDIGIT ***
 
 #endif /* I_REALLY_WANT_CTYPE_MACROS */