import gdb-1999-08-16 snapshot
[deliverable/binutils-gdb.git] / gdb / gnu-regex.c
index ef798075f83ed6a805e37248f1213ac7f4da438d..8051c12d00c6d81383eeccd8d40a5a1e9cfa436d 100644 (file)
@@ -1702,7 +1702,11 @@ typedef struct
        }                                                               \
     }
 
-#if defined _LIBC || (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H)
+/* Use this only if they have btowc(), since wctype() is used below
+   together with btowc().  btowc() is defined in the 1994 Amendment 1
+   to ISO C and may not be present on systems where we have wchar.h
+   and wctype.h.  */
+#if defined _LIBC || (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H && defined HAVE_BTOWC)
 /* The GNU C library provides support for user-defined character classes
    and the functions from ISO C amendement 1.  */
 # ifdef CHARCLASS_NAME_MAX
This page took 0.024345 seconds and 4 git commands to generate.