delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/05/23/13:29:16

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
From: "Gerald S. Williams" <gsw AT agere DOT com>
To: <cygwin-developers AT cygwin DOT com>
Subject: RE: Should sys/types.h include sys/sysmacros.h?
Date: Thu, 23 May 2002 13:29:04 -0400
Message-ID: <GBEGLOMMCLDACBPKDIHFGEFBCIAA.gsw@agere.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal
In-Reply-To: <20020522144856.F10218@cygbert.vinschen.de>

Corinna Vinschen wrote:
>   if !_POSIX_THREADS || __CYGWIN__
> so it's always included when building under Cygwin.

My mistake. Sorry for the confusion--I missed the "!" in the
following:

 #if defined(_POSIX_THREADS) && !defined(__CYGWIN__)
 ...90 lines deleted...
 #else
 #if defined (__CYGWIN__)
 #include <cygwin/types.h>
 #endif
 #endif /* defined(_POSIX_THREADS) */

Its fine the way it is. Although personally, I'd find it
easier to follow written like this:

 #if defined(_POSIX_THREADS) && !defined(__CYGWIN__)
 ...90 lines deleted...
 #endif /* defined(_POSIX_THREADS) && !defined(__CYGWIN__) */

 #if defined(__CYGWIN__)
 #include <cygwin/types.h>
 #endif

-Jerry

- Raw text -


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