* chardefs.h, tilde.c: Just declare strrchr rather than trying to
authorJim Kingdon <jkingdon@engr.sgi.com>
Sat, 22 Jan 1994 02:06:58 +0000 (02:06 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Sat, 22 Jan 1994 02:06:58 +0000 (02:06 +0000)
include a system header.

readline/ChangeLog
readline/chardefs.h

index f6803b9..4b80796 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jan 21 17:31:26 1994  Jim Kingdon  (kingdon@lisa.cygnus.com)
+
+       * chardefs.h, tilde.c: Just declare strrchr rather than trying to
+       include a system header.
+
 Fri Jan 21 14:40:43 1994  Fred Fish  (fnf@cygnus.com)
 
        * Makefile.in (distclean, realclean):  Expand local-distclean
index 241567e..f7df250 100644 (file)
@@ -4,11 +4,19 @@
 
 #include <ctype.h>
 
+#if 0
+/* Getting the correct definition of HAVE_STRING_H is harder than just
+   declaring them ourselves.  CYGNUS LOCAL.  */
 #if defined (HAVE_STRING_H)
 #  include <string.h>
 #else
 #  include <strings.h>
 #endif /* HAVE_STRING_H */
+#else /* not 0 */
+/* We don't worry about declaring functions where we don't use the return
+   value (e.g. strcpy) or which return int.  */
+extern char *strrchr ();
+#endif /* not 0 */
 
 #ifndef savestring
 #if 0