OSDN Git Service

As released in uClibc 0.9.16, regex was being compiled without
authorEric Andersen <andersen@codepoet.org>
Thu, 14 Nov 2002 04:06:07 +0000 (04:06 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 14 Nov 2002 04:06:07 +0000 (04:06 -0000)
wide char support, even when the rest of uClibc was.  This led
to anyone using regex segfaulting...
 -Erik

libc/misc/regex/regex.c

index 8129831..0e8a18f 100644 (file)
 #  include <sys/types.h>
 # endif
 
-# define WIDE_CHAR_SUPPORT (HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_BTOWC)
 
 /* For platform which support the ISO C amendement 1 functionality we
    support user defined character classes.  */
-# if defined _LIBC || WIDE_CHAR_SUPPORT
+#if defined __UCLIBC_HAS_WCHAR__
+#  define WIDE_CHAR_SUPPORT 1
 /* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>.  */
 #  include <wchar.h>
 #  include <wctype.h>