summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortgoodwin <tgoodwin>1998-07-08 13:31:24 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:06 +0100
commita0f0aa5f02a087f2c433f6cc53a6331c5befaaed (patch)
treeb800f4fb2302bcab22a35fe0631f63cea2c6c23a
parent3173fedfe4988d304bebf0e598384cab76fe94e9 (diff)
include declaration for malloc() if we didn't have stdlib.h
is this right thing to do?
-rw-r--r--rc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/rc.h b/rc.h
index 9f1fc5d..a0b4d34 100644
--- a/rc.h
+++ b/rc.h
@@ -4,6 +4,8 @@
#if STDC_HEADERS
#include <stdlib.h>
+#else
+extern void *malloc(size_t);
#endif
#if HAVE_SYS_TYPES_H