]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add extra protection in case strrchr already defined
authorMichael Meissner <meissner@gcc.gnu.org>
Mon, 20 Apr 1998 13:30:32 +0000 (13:30 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Mon, 20 Apr 1998 13:30:32 +0000 (13:30 +0000)
From-SVN: r19343

gcc/protoize.c

index 754d6c23ce8d64dde7b2aa095bca26223a043690..70599879bbc0cb88cc9088676c328f1cbeb71871 100644 (file)
@@ -78,11 +78,13 @@ Boston, MA 02111-1307, USA.  */
    but it normally does declare it.  This means that configure thinks we don't
    need to declare it.  Favor using strrchr if it is available.  */
 
+#ifndef strrchr
 #ifndef HAVE_STRRCHR
 #ifdef  HAVE_RINDEX
 #define strrchr rindex
 #endif
 #endif
+#endif
 
 /* Include getopt.h for the sake of getopt_long.
    We don't need the declaration of getopt, and it could conflict