help-flex
[Top][All Lists]
Advanced

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

Windows port (unistd.h)


From: Vincent Caron
Subject: Windows port (unistd.h)
Date: Tue, 22 Oct 2002 14:38:48 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2a) Gecko/20020910

Hello,

since there's no such <unistd.h> on my hostile planet :), I have to use the YY_NO_UNISTD_H feature. However I'm not sure where this macro should be defined in my case. My current solution is to add this blurb to the first section of scan.l :

#ifdef _WIN32
#define YY_NO_UNISTD_H
#endif

Not satisfying IMHO since users will have to copy this in every .l file to get a working scanner under Windows. What should I do ?





reply via email to

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