summaryrefslogtreecommitdiff
path: root/flexdef.h
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1990-07-28 16:53:13 +0000
committerVern Paxson <vern@ee.lbl.gov>1990-07-28 16:53:13 +0000
commit746717cc9594402395206ead67328748fad7bb25 (patch)
treec035dd038c6fdd3f038b2128a649c3ab10b21738 /flexdef.h
parente5108c09de581933bb85ed2b1f00334a2ae5e1e8 (diff)
Changed to get malloc definition in identical fashion to that
used by flex.skel
Diffstat (limited to 'flexdef.h')
-rw-r--r--flexdef.h9
1 files changed, 9 insertions, 0 deletions
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 <stdlib.h>
+#else
+void *malloc( unsigned );
+void free( void* );
+#endif
+#else
char *malloc(), *realloc();
+#endif
/* maximum line length we'll have to deal with */