]> sourceware.org Git - newlib-cygwin.git/commitdiff
Replace __restrict with __restrict_arr in regex.h
authoryang.zhang <zhangyang01@kylinos.cn>
Thu, 29 Aug 2024 03:08:04 +0000 (11:08 +0800)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 2 Sep 2024 20:23:50 +0000 (22:23 +0200)
when a C++ source file include this header file, it would build fail.

Signed-off-by: yang.zhang <zhangyang01@kylinos.cn>
newlib/libc/include/regex.h

index fa3e26879aefa371e154b4a9d72b4f525d4f0af4..4da1a374eaa85e250e581d174a82eefb0670a17b 100644 (file)
@@ -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
 
This page took 0.031624 seconds and 5 git commands to generate.