summaryrefslogtreecommitdiffstats
path: root/contrib/libreadline/ansi_stdlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libreadline/ansi_stdlib.h')
-rw-r--r--contrib/libreadline/ansi_stdlib.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/contrib/libreadline/ansi_stdlib.h b/contrib/libreadline/ansi_stdlib.h
index 3a354f2..db13cd2 100644
--- a/contrib/libreadline/ansi_stdlib.h
+++ b/contrib/libreadline/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. */
OpenPOWER on IntegriCloud