This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: sys/filio.h
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 16 Mar 2012 16:41:55 -0400
- Subject: Re: sys/filio.h
- References: <BAY156-W21C7B0B6880EB72A802F29C95F0@phx.gbl>
- Reply-to: cygwin at cygwin dot com
[formatting fixed]
On Fri, Mar 16, 2012 at 04:23:32PM -0400, Tom Szczesny wrote:
>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>
>}
>#else
>extern "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?
You don't have to interrupt a build to play with the c compiler or
grep /usr/include.
As a fish teaching exercise, try this command:
gcc -xc /dev/null -dD -E
cgf
--
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