delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/11/04:45:57

From: noer AT cygnus DOT com (Geoffrey Noer)
Subject: Re: I: gcc ... -U_WIN32 ... may cause problems
11 Sep 1998 04:45:57 -0700 :
Message-ID: <19980910185418.60014.cygnus.gnu-win32@cygnus.com>
References: <19980910155429 DOT 26532 DOT rocketmail AT send104 DOT yahoomail DOT com>
Mime-Version: 1.0
To: earnie_boyd AT yahoo DOT com
Cc: Mumit Khan <khan AT xraylith DOT wisc DOT edu>, gw32 <gnu-win32 AT cygnus DOT com>

On Thu, Sep 10, 1998 at 08:54:29AM -0700, Earnie Boyd wrote:
[...]
> Geoffrey, __CYGWIN32__ means "access to both Win32 API calls and
> Unix/Posix API calls".  _WIN32 means "access to only Win32 API calls".
>  __MINGW32__ means "access to only Win32 API calls" (Actually could be
> dropped in favor of _WIN32).

Although I understand why people might argue for your definitions,
this is *not* how we've been using them in any of the tools shipped as
part of the gnu-win32 releases.

We've always used __CYGWIN32__ to conditionalize code inclusion on
access to the Cygwin32 API (checking for the existance of Unixy
calls).  We've used _WIN32 to check for accessibility of the Win32 API
calls.  And finally, we've used _MSC_VER to identify code that's only
intended for VC++.

-- 
Geoffrey Noer
noer AT cygnus DOT com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019