]> granicus.if.org Git - flex/commitdiff
Changed to get malloc definition in identical fashion to that
authorVern Paxson <vern@ee.lbl.gov>
Sat, 28 Jul 1990 16:53:13 +0000 (16:53 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Sat, 28 Jul 1990 16:53:13 +0000 (16:53 +0000)
used by flex.skel

flexdef.h

index 6d3fee4244713b1da3f9b08d1b49981c9d4ff1e6..f30b5387b53c4376df3350fcc8db4ee2fa018975 100644 (file)
--- 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 */