This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 09/17] Regex: Add undefs of various routines and macros.
- From: Arnold Robbins <arnold at skeeve dot com>
- To: carlos at redhat dot com, libc-alpha at sourceware dot org
- Date: Fri, 08 Dec 2017 11:16:59 +0200
- Subject: [PATCH 09/17] Regex: Add undefs of various routines and macros.
- Authentication-results: sourceware.org; auth=none
This patch adds undefs for various routines and macros, making the
code more consistent.
2017-11-27 Arnold D. Robbins <arnold@skeeve.com>
* posix/regex_internal.h: Add undefs of various routines / macros.
diff --git a/posix/regex_internal.h b/posix/regex_internal.h
index e9cc2b6..e07a44a 100644
--- a/posix/regex_internal.h
+++ b/posix/regex_internal.h
@@ -97,6 +97,10 @@
# define BE(expr, val) __builtin_expect (expr, val)
#else
# define BE(expr, val) (expr)
+# ifdef inline
+# undef inline
+# endif
+# define inline
#endif
/* Number of single byte character. */
@@ -110,10 +114,17 @@
/* Rename to standard API for using out of glibc. */
#ifndef _LIBC
+# ifdef __wctype
+# undef __wctype
+# endif
# define __wctype wctype
+# ifdef __iswctype
+# undef __iswctype
+# endif
# define __iswctype iswctype
# define __btowc btowc
# define __mbrtowc mbrtowc
+#undef __mempcpy
# define __mempcpy mempcpy
# define __wcrtomb wcrtomb
# define __regfree regfree