summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Potortì <pot@gnu.org>2002-09-30 08:07:42 +0000
committerFrancesco Potortì <pot@gnu.org>2002-09-30 08:07:42 +0000
commit665d07bf43c57ef4d9c90ba4f24efa77a7d1f661 (patch)
treefc2b4c37b114139630beb5db5f35f66dfc7b597b
parent1219fba96730ce8f1c7f025f940c26a24c6dfadd (diff)
downloademacs-665d07bf43c57ef4d9c90ba4f24efa77a7d1f661.tar.gz
(__restrict_arr): Do not redefine it if already defined.
-rw-r--r--src/regex.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/regex.h b/src/regex.h
index ef4284cdce2..1cfd4363ea7 100644
--- a/src/regex.h
+++ b/src/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,