X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=readline%2Fhistlib.h;h=c39af71814c81d5c7b73fe43497fc2e77ba7d333;hb=0b7b5a9720bdb106743a6df7eab9f1d824489217;hp=88a34d10f1d57e22d6a6783a255b11af61d95ce5;hpb=2ee563b53258d390d7446e90a67f465d504ae44c;p=deliverable%2Fbinutils-gdb.git diff --git a/readline/histlib.h b/readline/histlib.h index 88a34d10f1..c39af71814 100644 --- a/readline/histlib.h +++ b/readline/histlib.h @@ -22,14 +22,11 @@ #if !defined (_HISTLIB_H_) #define _HISTLIB_H_ -/* Function pointers can be declared as (Function *)foo. */ -#if !defined (_FUNCTION_DEF) -# define _FUNCTION_DEF -typedef int Function (); -typedef void VFunction (); -typedef char *CPFunction (); -typedef char **CPPFunction (); -#endif /* _FUNCTION_DEF */ +#if defined (HAVE_STRING_H) +# include +#else +# include +#endif /* !HAVE_STRING_H */ #if !defined (STREQ) #define STREQ(a, b) (((a)[0] == (b)[0]) && (strcmp ((a), (b)) == 0)) @@ -38,9 +35,6 @@ typedef char **CPPFunction (); #endif #ifndef savestring -# ifndef strcpy -extern char *strcpy (); -# endif #define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x)) #endif