From 746717cc9594402395206ead67328748fad7bb25 Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Sat, 28 Jul 1990 16:53:13 +0000 Subject: [PATCH] Changed to get malloc definition in identical fashion to that used by flex.skel --- flexdef.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/flexdef.h b/flexdef.h index 6d3fee4..f30b538 100644 --- a/flexdef.h +++ b/flexdef.h @@ -90,7 +90,16 @@ char *memset(); #define SHORT_FILE_NAMES #endif +#ifdef __STDC__ +#ifndef DONT_HAVE_STDLIB_H +#include +#else +void *malloc( unsigned ); +void free( void* ); +#endif +#else char *malloc(), *realloc(); +#endif /* maximum line length we'll have to deal with */ -- 2.40.0