changeset 31226:4b1b1196a217

(index): Define only if not HAVE_INDEX. (rindex): Define only if !HAVE_RINDEX.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 28 Aug 2000 15:03:42 +0000
parents 7930c46bb365
children 694f1035db7c
files src/s/usg5-3.h
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/s/usg5-3.h	Mon Aug 28 15:03:29 2000 +0000
+++ b/src/s/usg5-3.h	Mon Aug 28 15:03:42 2000 +0000
@@ -148,8 +148,12 @@
 #define _longjmp longjmp
 
 /* On USG systems these have different names */
+#ifndef HAVE_INDEX
 #define index strchr
+#endif /* ! defined (HAVE_INDEX) */
+#ifndef HAVE_RINDEX
 #define rindex strrchr
+#endif /* ! defined (HAVE_RINDEX) */
 
 /* USG systems tend to put everything declared static
    into the initialized data area, which becomes pure after dumping Emacs.