diff options
author | John Denker <jsd@av8n.com> | 2014-04-27 16:04:51 -0700 |
---|---|---|
committer | John Denker <jsd@av8n.com> | 2014-04-27 16:33:23 -0700 |
commit | 8e0679d9227c964d8df84bcb71054a4f14f72343 (patch) | |
tree | ee70210eb701bc604a1b6c577797c989f94fd0be /alloc.c | |
parent | 97f3e615e5d634ca0b762193c0e87017d41584fd (diff) |
get rid of some warnings
Diffstat (limited to 'alloc.c')
-rw-r--r-- | alloc.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,6 +1,10 @@ #include "alloc.h" #include "error.h" -extern char *malloc(); +#ifndef __GNUC__ + extern char *malloc(); +#else +# include <stdlib.h> +#endif extern void free(); #define ALIGNMENT 16 /* XXX: assuming that this alignment is enough */ |