[Top][All Lists]

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

Re: [PATCH] libtool on cygwin [1/4]: cygwin doesn't use LoadLibrary

From: Charles Wilson
Subject: Re: [PATCH] libtool on cygwin [1/4]: cygwin doesn't use LoadLibrary
Date: Wed, 05 Nov 2003 19:50:15 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630

Gary V. Vaughan wrote:
Charles Wilson wrote:

-#ifdef __WINDOWS__
+#if defined(__WINDOWS__) || defined(__CYGWIN__)

-#  ifdef __WINDOWS__
+#  if defined(__WINDOWS__) && !defined(__CYGWIN__)

Huh? Is __WINDOWS__ (or WIN32 or _WIN32) defined on cygwin, or not? If it is, the first change is unneccessary, otherwise the second change is bogus.

It depends. Most recent cygwin compilers (< 2yrs old?) do not define WIN32 or related symbols. But older ones did.

So, for recent compilers, the first change is necessary but the second one is not; for older compilers the second change is required by the first one is not.

Welcome to my world.


reply via email to

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