]> granicus.if.org Git - flex/commitdiff
fix for g++
authorVern Paxson <vern@ee.lbl.gov>
Fri, 23 Mar 1990 14:20:19 +0000 (14:20 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Fri, 23 Mar 1990 14:20:19 +0000 (14:20 +0000)
flex.skl

index 84afa5579c4f94db4b79e28b9ccba29bcc596201..3a7ca90fc3e8ae2af577d138971a99ced68cafc7 100644 (file)
--- a/flex.skl
+++ b/flex.skl
@@ -10,7 +10,7 @@
 
 
 #ifdef __cplusplus
-#include <osfcn.h>
+#include <stdlib.h>
 #include <strings.h>
 
 /* use prototypes in function declarations */
 
 #ifdef YY_USE_PROTOS
 #define YY_PROTO(proto) proto
+#ifndef __cplusplus
 char *malloc( unsigned size );
 int free( char * );
+#endif
 #else
 #define YY_PROTO(proto) ()
 char *malloc();