cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Removing WIN32 dependencies

From: Brian Dessent <brian_at_dessent.net>
Date: Fri, 21 Jul 2006 20:09:20 -0700

Gisle Vanem wrote:

> of that horrid ifdef's obviously didn't know about __CYGWIN__. Hence it should
> have been:
> #if defined(WIN32) && !defined(__CYGWIN__)

FYI, under Cygwin WIN32 is not defined at all. So the second half of
that is not necessary. Cygwin tries as hard as possible to look like a
posix environment and not a Windows one. However, the problem arises
that all the Win32 API headers and libs are still present, so anything
that checks for them will succeed. But they should not be used when a
posix way of doing something is available, i.e. the unix code path
should be followed.

Brian
Received on 2006-07-22