Jonathan Worthington <[EMAIL PROTECTED]> wrote:
> Hi,

> When building under Win32:-

> imclexer.c
> imcc/imclexer.c(13) : fatal error C1083: Cannot open include file:
> 'unistd.h': No such file or directory

It seems, that Melvin's flex is slightly older then mine. A diff of the
relevant part of (the generated) imclexer.c shows:

@@ -10,7 +10,6 @@
 #define YY_FLEX_MINOR_VERSION 5

 #include <stdio.h>
-#include <unistd.h>


 /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
@@ -24,6 +23,7 @@
 #ifdef __cplusplus

 #include <stdlib.h>
+#include <unistd.h>

 /* Use prototypes in function declarations. */
 #define YY_USE_PROTOS

So unistd.h is only included, if __cplusplus is defined.

> Jonathan

leo

Reply via email to