This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Warning "__restrict_arr" redefined while building libiberty/xatexit.c



Try this, and let me know if it's really this simple... ;-)

Index: xregex2.h
===================================================================
RCS file: /cvs/gcc/gcc/include/xregex2.h,v
retrieving revision 1.2
diff -p -3 -r1.2 xregex2.h
*** xregex2.h	2001/07/18 23:40:00	1.2
--- xregex2.h	2002/03/25 22:04:08
*************** extern int re_exec _RE_ARGS ((const char
*** 532,538 ****
--- 532,540 ----
  /* 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,


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]