From: yang.zhang Date: Thu, 29 Aug 2024 03:08:04 +0000 (+0800) Subject: Replace __restrict with __restrict_arr in regex.h X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=1b3dcfdc6f1fd2bd3e1ef2f8b7df736c076c6042;p=newlib-cygwin.git Replace __restrict with __restrict_arr in regex.h when a C++ source file include this header file, it would build fail. Signed-off-by: yang.zhang --- diff --git a/newlib/libc/include/regex.h b/newlib/libc/include/regex.h index fa3e26879..4da1a374e 100644 --- a/newlib/libc/include/regex.h +++ b/newlib/libc/include/regex.h @@ -96,7 +96,7 @@ __BEGIN_DECLS int regcomp(regex_t *__restrict, const char *__restrict, int); size_t regerror(int, const regex_t *__restrict, char *__restrict, size_t); int regexec(const regex_t *__restrict, const char *__restrict, - size_t, regmatch_t [__restrict], int); + size_t, regmatch_t [__restrict_arr], int); void regfree(regex_t *); __END_DECLS