This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 09/17] Regex: Add undefs of various routines and macros.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]