delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/03/16/16:23:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <BAY156-W21C7B0B6880EB72A802F29C95F0@phx.gbl>
From: Tom Szczesny <tavmem AT hotmail DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: sys/filio.h
Date: Fri, 16 Mar 2012 16:23:32 -0400
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q2GKNpRl025707

There are several places in the source code that have the following type of construction:
#if defined(_AIX) || defined(linux) || defined(__alpha) || defined(__APPLE__)extern "C" {#include <sys/ioctl.h>}#elseextern "C" {#include <sys/filio.h>}#endif
As a temporary measure, I have added a line at the beginning of each construction, stating:#define linux
While this works as a temporary fix, I need to know the name of the variable automatically defined by Cygwin so that I can do something like:#if defined(_AIX) || defined(linux) || defined(__alpha) || defined(__APPLE__) || defined(cygwin)
There is quite a long build going at the momemt, and I don't want to interrupt it to test out different possibilities.Can you either confirm that the defined variable is named "cygwin", or tell me what the actual name is?


 		 	   		  

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


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