(__restrict_arr): Don't define if already defined.
authorRichard Stallman <rms@gnu.org>
Thu, 26 Sep 2002 22:04:14 +0000 (22:04 +0000)
committerRichard Stallman <rms@gnu.org>
Thu, 26 Sep 2002 22:04:14 +0000 (22:04 +0000)
regex.h

diff --git a/regex.h b/regex.h
index ef4284cdce2894645bd705d1a41314fb21cf9d70..f3c1c875a75d23895ea0e1258bc795ebcc45a6f7 100644 (file)
--- a/regex.h
+++ b/regex.h
@@ -538,7 +538,9 @@ extern int re_exec _RE_ARGS ((const char *));
 /* For now unconditionally define __restrict_arr to expand to nothing.
    Ideally we would have a test for the compiler which allows defining
    it to restrict.  */
+#ifndef __restrict_arr
 #define __restrict_arr
+#endif
 
 /* POSIX compatibility.  */
 extern int regcomp _RE_ARGS ((regex_t *__restrict __preg,