delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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-Injected-Via-Gmane: | http://gmane.org/ |
To: | cygwin AT cygwin DOT com |
From: | John Williams <jwilliams AT itee DOT uq DOT edu DOT au> |
Subject: | Re: gcc/Cygwin awareness |
Date: | Tue, 01 Apr 2003 07:27:48 +1000 |
Lines: | 23 |
Message-ID: | <b6abs7$5g1$1@main.gmane.org> |
References: | <b68arh$j9m$1 AT main DOT gmane DOT org> <002301c2f734$736febf0$9a7586d9 AT ellixia> <b68cun$ohl$1 AT main DOT gmane DOT org> <001b01c2f76c$d7b558b0$3778883e AT pomello> |
Mime-Version: | 1.0 |
X-Complaints-To: | usenet AT main DOT gmane DOT org |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030210 |
X-Accept-Language: | en-us, en |
In-Reply-To: | <001b01c2f76c$d7b558b0$3778883e@pomello> |
Hi Max, Max Bowsher wrote: > John Williams wrote: > >>Elfyn McBratney wrote: >> >>>You could use this >>> >>>#if defined(__GNUC__) && defined(__CYGWIN__) >> >>So __CYGWIN__ is defined in the preprocessor environment when compiling >>under Cygwin? That's precisely what I'm after, thanks. > > > General answer to this kind of question: > > $ gcc -E -dM -xc /dev/null Excellent. Thanks for that, a useful bit of syntax to remember. John -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |