changeset 3916:c218b50ede10

(__restrict_arr): Do not redefine it if already defined.
author Francesco Potortl <pot@gnu.org>
date Mon, 30 Sep 2002 08:07:42 +0000
parents 893bcef1c8a4
children 075b873e1ca3
files regex.h
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/regex.h
+++ b/regex.h
@@ -535,10 +535,12 @@
 #  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,