delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/11/15/03:38:44

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
From: Sean Seefried <sean DOT seefried AT nicta DOT com DOT au>
To: cygwin AT cygwin DOT com
Date: Thu, 15 Nov 2007 19:38:23 +1100
Message-Id: <49009E55-A6F4-4E8B-9305-F2D3350340F2@nicta.com.au>
Mime-Version: 1.0 (Apple Message framework v912)
Subject: Request for information on the __INSIDE_CYGWIN__ #define
X-Mailer: Apple Mail (2.912)
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

Hi guys,

I'm not entirely sure this is the place to ask this question. This  
question may be better directed towards the GCC mailing list. However,  
I hope someone here can help me.

My question centers around the __INSIDE_CYGWIN__ #define. From what I  
can gather from looking through the header files in /usr/include and  
sub-directories, it is used to "protect" Cygwin users from seeing  
Microsoft extensions in their preprocessed output. (It often prevents  
__declspec declarations from being defined for instance.)

However, try as I might, I simply cannot find a single place where it  
is defined.  So my natural thought is that one of the tools in the GNU  
Compiler Collection defines it. However, passing the verbose (-v)  
option showed that only __CYGWIN__ and __CYGWIN32__ were defined.

My questions are manifold:

a) How does this symbol get #defined?
b) If it's from some tool can someone provide me with command line  
flags to that tool which will show me all the other #defines it does?  
Or perhaps the information is in a configuration file somewhere. If  
so, could someone tell me where that is?
c) Why isn't this documented somewhere? I tried googling the symbol  
and got a mere three entries on it. Normally I wouldn't bother a high- 
volume list with what seems like such a basic question, but I simply  
couldn't find any other information on it.

If this is indeed the wrong place to ask this question could someone  
point me to the appropriate place? It'd be much appreciated.

Cheers,

Sean

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

- Raw text -


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