summaryrefslogtreecommitdiff
path: root/libc/misc/regex/regex.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-27 01:54:39 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:34 +0200
commit41f937c846d5d106a049094dea67118810d6f4ac (patch)
treed1e1064c7e5145326211046d107db446d4c127d7 /libc/misc/regex/regex.c
parentef304f14b38a40531af4abd5cd4703cb3483be88 (diff)
adapt regex to new regex.h
While there, add some defines to help build, cleanup Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/misc/regex/regex.c')
-rw-r--r--libc/misc/regex/regex.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/misc/regex/regex.c b/libc/misc/regex/regex.c
index fa46f635f..e097d9a37 100644
--- a/libc/misc/regex/regex.c
+++ b/libc/misc/regex/regex.c
@@ -30,7 +30,12 @@
# include <stdlib.h>
# ifdef __UCLIBC_HAS_WCHAR__
# define RE_ENABLE_I18N
+# define HAVE_WCHAR_H 1
+# define HAVE_WCRTOMB 1
+# define HAVE_MBRTOWC 1
+# define HAVE_WCSCOLL 1
# include <wchar.h>
+# define HAVE_WCTYPE_H 1
# include <wctype.h>
# define __iswctype iswctype
# define __wcrtomb wcrtomb
@@ -38,6 +43,9 @@
# define __wctype wctype
# endif
# include <ctype.h>
+# ifdef __UCLIBC_HAS_LOCALE__
+# define HAVE_LOCALE_H 1
+# endif
#endif
/* Make sure noone compiles this code with a C++ compiler. */