summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2000-08-28 15:03:42 +0000
committerGerd Moellmann <gerd@gnu.org>2000-08-28 15:03:42 +0000
commit1f4ecd6b72241c6f562192735279329c5eb963c9 (patch)
tree615244b183aa1f30e2e7bf953bf1c76b959ee41b
parenta847af86f51bca4cc75993a6c7c3fbee952391a9 (diff)
downloademacs-1f4ecd6b72241c6f562192735279329c5eb963c9.tar.gz
emacs-1f4ecd6b72241c6f562192735279329c5eb963c9.tar.bz2
emacs-1f4ecd6b72241c6f562192735279329c5eb963c9.zip
(index): Define only if not HAVE_INDEX.
(rindex): Define only if !HAVE_RINDEX.
-rw-r--r--src/s/usg5-3.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/s/usg5-3.h b/src/s/usg5-3.h
index 557091d19b9..5323bb694a6 100644
--- a/src/s/usg5-3.h
+++ b/src/s/usg5-3.h
@@ -148,8 +148,12 @@ Boston, MA 02111-1307, USA. */
#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.