2002-11-23 Klee Dienes * libiberty.h (basename): Add Mac OS X to the list. (__restrict_arr): The Mac OS X compiler doesn't support __restrict_arr even though it sets __GNUC_MINOR__ to 1. Index: libiberty.h =================================================================== RCS file: /cvs/src/src/include/libiberty.h,v retrieving revision 1.20 diff -u -r1.20 libiberty.h --- libiberty.h 24 Nov 2002 06:58:20 -0000 1.20 +++ libiberty.h 24 Nov 2002 08:25:07 -0000 @@ -74,7 +74,7 @@ to find the declaration so provide a fully prototyped one. If it is 1, we found it so don't provide any declaration at all. */ #if !HAVE_DECL_BASENAME -#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (HAVE_DECL_BASENAME) +#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined (__APPLE__) || defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (HAVE_DECL_BASENAME) extern char *basename PARAMS ((const char *)); #else extern char *basename (); Index: xregex2.h =================================================================== RCS file: /cvs/src/src/include/xregex2.h,v retrieving revision 1.3 diff -u -r1.3 xregex2.h --- xregex2.h 17 Apr 2002 01:03:04 -0000 1.3 +++ xregex2.h 24 Nov 2002 08:25:08 -0000 @@ -533,7 +533,7 @@ /* GCC 3.1 and later support declaring arrays as non-overlapping using the syntax array_name[restrict] */ #ifndef __restrict_arr -# if ! (3 < __GNUC__ || (3 == __GNUC__ && 1 <= __GNUC_MINOR__)) || defined (__GNUG__) +# if ! (3 < __GNUC__ || (3 == __GNUC__ && 1 <= __GNUC_MINOR__)) || defined (__GNUG__) || defined (__APPLE__) # define __restrict_arr # else # define __restrict_arr __restrict