From: Vern Paxson Date: Sat, 28 Jul 1990 16:53:13 +0000 (+0000) Subject: Changed to get malloc definition in identical fashion to that X-Git-Tag: flex-2-5-5b~483 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=746717cc9594402395206ead67328748fad7bb25;p=flex Changed to get malloc definition in identical fashion to that used by flex.skel --- 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 */