merge with 3.5
authorJim Meyering <jim@meyering.net>
Thu, 22 Apr 1993 03:17:11 +0000 (03:17 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 22 Apr 1993 03:17:11 +0000 (03:17 +0000)
lib/backupfile.c

index 7a624cf..f15e530 100644 (file)
 #include "backupfile.h"
 #if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
 #include <string.h>
+#ifndef index
 #define index strchr
+#endif
+#ifndef rindex
 #define rindex strrchr
+#endif
 #else
 #include <strings.h>
 #endif