Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin@cygwin.com
From: John Williams <jwilliams@itee.uq.edu.au>
Subject: gcc/Cygwin awareness
Date: Mon, 31 Mar 2003 12:58:05 +1000
Lines: 21
Message-ID: <b68arh$j9m$1@main.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@main.gmane.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

Hi folks,

Is there a macro defined in gcc when running under Cygwin as opposed to, 
say, linux?

I'd like to code something like

#ifdef _GCC_UNDER_CYGWIN
blah blah
#else
blah blah
#endif

This is to get around the fact that Cygwin doesn't provide the libgen.h 
header file, which I need to build uClibc for this cross-platform 
project I'm doing.

Thanks,

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/

