[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Flex: Cygwin and Windows ports
From: |
Bruce Lilly |
Subject: |
Re: Flex: Cygwin and Windows ports |
Date: |
Tue, 22 Oct 2002 11:11:13 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2a) Gecko/20020910 |
Vincent Caron wrote:
Bruce Lilly wrote:
Please DO NOT use _WIN32 as the sole macro for #ifdef/#ifndef.
That will break currently-working implementations (e.g. UWIN) for
which the MS compiler still defines _WIN32.
All right, so here _WIN32 should be replaced by _MSC_VER which is
specific to the Visual compiler series.
NO!!! You have completely missed the point. The compiler is a
separate issue from the compilation environment, the libraries,
and the run-time environment. The MS compiler will always
define _WIN32 and _MSC_VER even when used in an environment
which has unistd.h, htons, int64_t, etc.
Use the mechanism provided by configure, e.g. for unistd,h
use the HAVE_UNISTD_H macro.