X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Freadline%2Fansi_stdlib.h;h=db13cd234bdf216accbe666718f5e63dab4001cc;hb=f73dda092b33638d2d5e9c35375f687a607b5403;hp=3a354f28ddf2708a08559ab7afa5a5efe89687c4;hpb=28ef6c316f1aff914bb95ac09787a3c83c1815fd;p=platform%2Fupstream%2Fbash.git diff --git a/lib/readline/ansi_stdlib.h b/lib/readline/ansi_stdlib.h index 3a354f2..db13cd2 100644 --- a/lib/readline/ansi_stdlib.h +++ b/lib/readline/ansi_stdlib.h @@ -25,14 +25,24 @@ /* String conversion functions. */ extern int atoi (); -extern long int atol (); extern double atof (); extern double strtod (); /* Memory allocation functions. */ -extern char *malloc (); -extern char *realloc (); +/* Generic pointer type. */ +#ifndef PTR_T + +#if defined (__STDC__) +# define PTR_T void * +#else +# define PTR_T char * +#endif + +#endif /* PTR_T */ + +extern PTR_T malloc (); +extern PTR_T realloc (); extern void free (); /* Other miscellaneous functions. */