diff src/editfns.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 e19d38e14720
children 3ecef4a7b3cd
line wrap: on
line diff
--- a/src/editfns.c	Mon Aug 28 15:01:58 2000 +0000
+++ b/src/editfns.c	Mon Aug 28 15:03:29 2000 +0000
@@ -42,6 +42,14 @@
 
 #include "systime.h"
 
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
 #define min(a, b) ((a) < (b) ? (a) : (b))
 #define max(a, b) ((a) > (b) ? (a) : (b))
 
@@ -1138,7 +1146,6 @@
 {
   struct passwd *pw;
   register unsigned char *p, *q;
-  extern char *index ();
   Lisp_Object full;
 
   if (NILP (uid))
@@ -3018,8 +3025,6 @@
     int start, end;
   } *info = 0;
 
-  extern char *index ();
-
   /* It should not be necessary to GCPRO ARGS, because
      the caller in the interpreter should take care of that.  */