]> granicus.if.org Git - flex/commitdiff
g++ tweaks
authorVern Paxson <vern@ee.lbl.gov>
Mon, 26 Mar 1990 16:38:49 +0000 (16:38 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Mon, 26 Mar 1990 16:38:49 +0000 (16:38 +0000)
flex.skl

index 3a7ca90fc3e8ae2af577d138971a99ced68cafc7..fe0a56786fed2e91497bb0cc621aad01b790e280 100644 (file)
--- a/flex.skl
+++ b/flex.skl
@@ -11,7 +11,7 @@
 
 #ifdef __cplusplus
 #include <stdlib.h>
-#include <strings.h>
+#include <osfcn.h>
 
 /* use prototypes in function declarations */
 #define YY_USE_PROTOS
 
 #ifdef YY_USE_PROTOS
 #define YY_PROTO(proto) proto
-#ifndef __cplusplus
 char *malloc( unsigned size );
 int free( char * );
-#endif
 #else
 #define YY_PROTO(proto) ()
+/* there's no standard place to get these definitions */
 char *malloc();
 int free();
+int read();
 #endif
 
 /* amount of stuff to slurp up with each read */