help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unistd


From: John Millaway
Subject: Re: unistd
Date: Thu, 14 Nov 2002 17:22:05 -0500 (EST)

> I do not know if this issue is still present in the current release of
> flex, but in my version, the generated files are not standard C.
>
> They indeed #include the non standard file unistd.h
>
> I do not know what is the use of this file, since the generated code
> seems to work perfectly if I remove this line.
>
> So I would appreciate to know if this line could be removed from the
> generated file.

Let me guess, you are on a Windows machine, but are concerned about
`flex' toeing the standards line? :)

Flex needs <unistd.h> for the POSIX standard system call, read(2).
However, enough windows users have complained... It is now
conditionally included.

If you are using version earlier than 2.5.5, the workaround is to
create your own "unistd.h" with nothing in it.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]