From: Francesco Potortl Date: Mon, 30 Sep 2002 08:07:42 +0000 (+0000) Subject: (__restrict_arr): Do not redefine it if already defined. X-Git-Tag: EMACS_PRETEST_21_2_93 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=c8498b2ce2bc7289574ee2f1c07c0f71ccd1ff08;p=gnulib.git (__restrict_arr): Do not redefine it if already defined. --- diff --git a/regex.h b/regex.h index ef4284cdce..1cfd4363ea 100644 --- a/regex.h +++ b/regex.h @@ -535,10 +535,12 @@ extern int re_exec _RE_ARGS ((const char *)); # endif # endif #endif -/* For now unconditionally define __restrict_arr to expand to nothing. +/* For now conditionally define __restrict_arr to expand to nothing. Ideally we would have a test for the compiler which allows defining it to restrict. */ -#define __restrict_arr +#ifndef __restrict_arr +# define __restrict_arr +#endif /* POSIX compatibility. */ extern int regcomp _RE_ARGS ((regex_t *__restrict __preg,