diff src/callint.c @ 31225:7930c46bb365

(toplevel) [HAVE_STRING_H]: Include string.h. (toplevel) [HAVE_STRINGS_H]: Include strings.h. (index): Remove prototypes which might conflict with non-standard definitions of index/strchr.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 28 Aug 2000 15:03:29 +0000
parents 3cb01e10ef3e
children 3ecef4a7b3cd
line wrap: on
line diff
--- a/src/callint.c	Mon Aug 28 15:01:58 2000 +0000
+++ b/src/callint.c	Mon Aug 28 15:03:29 2000 +0000
@@ -27,7 +27,13 @@
 #include "window.h"
 #include "mocklisp.h"
 
-extern char *index ();
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
 
 extern Lisp_Object Qcursor_in_echo_area;
 
@@ -449,7 +455,7 @@
     {
       strncpy (prompt1, tem + 1, sizeof prompt1 - 1);
       prompt1[sizeof prompt1 - 1] = 0;
-      tem1 = index (prompt1, '\n');
+      tem1 = (char *) index (prompt1, '\n');
       if (tem1) *tem1 = 0;
       /* Fill argstrings with a vector of C strings
 	 corresponding to the Lisp strings in visargs.  */