Re: [PATCH v1] Replace __restrict with __restrict_arr in regex.h

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Aug 29 11:08, yang.zhang wrote:
> From: "yang.zhang" <[email protected]>
> 
> when a C++ source file include this header file, it would build fail.
> 
> Signed-off-by: yang.zhang <[email protected]>
> ---
> Such as i build libgest, which would include regex.h, then it build fail.
> The failure is relate to commit 3c75fac130b5.
> 
> In file included from ../../../cpukit/libgtest/googletest/googletest/include/gtest/internal/gtest-port.h:451,
>                  from ../../../cpukit/libgtest/googletest/googletest/include/gtest/internal/gtest-internal.h:39,
>                  from ../../../cpukit/libgtest/googletest/googletest/include/gtest/gtest.h:58,
>                  from ../../../cpukit/libgtest/googletest/googletest/src/gtest-all.cc:39:
> /home/yangzhang/software/toolchain/toolchain/aarch64-rtems6/include/regex.h:99:45: error: expected primary-expression before '__restrict'
>    99 |                         size_t, regmatch_t [__restrict], int);
> 
> Signed-off-by: yang.zhang <[email protected]>
> ---
>  newlib/libc/include/regex.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Pushed.

Thanks,
Corinna
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.