(ISASCII): Add #undef and move definition to follow
authorJim Meyering <jim@meyering.net>
Mon, 31 Jan 2000 08:27:51 +0000 (08:27 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 31 Jan 2000 08:27:51 +0000 (08:27 +0000)
inclusion of wctype.h to work around solaris2.6 namespace pollution.
(ISPRINT): Likewise.

lib/quotearg.c

index 722fa734db0de6bd39cfdf7e83ca7b263f8d074f..47e4c142544d6798616656d0c1ae5e1e6c4c0fdb 100644 (file)
 #include <xalloc.h>
 
 #include <ctype.h>
-#if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII))
-# define ISASCII(c) 1
-#else
-# define ISASCII(c) isascii (c)
-#endif
-#define ISPRINT(c) (ISASCII (c) && isprint (c))
 
 #if ENABLE_NLS
 # include <libintl.h>
 
 #define INT_BITS (sizeof (int) * CHAR_BIT)
 
+#if defined (STDC_HEADERS) || (!defined (isascii) && !defined (HAVE_ISASCII))
+/* Undefine to protect against the definition in wctype.h of solaris2.6.   */
+# undef ISASCII
+# define ISASCII(c) 1
+#else
+# define ISASCII(c) isascii (c)
+#endif
+/* Undefine to protect against the definition in wctype.h of solaris2.6.   */
+#undef ISASCII
+#define ISPRINT(c) (ISASCII (c) && isprint (c))
+
 struct quoting_options
 {
   /* Basic quoting style.  */