[PATCH 09/17] Regex: Add undefs of various routines and macros.
Arnold Robbins
arnold@skeeve.com
Fri Dec 8 09:21:00 GMT 2017
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
More information about the Libc-alpha
mailing list