delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/15/16:52:28

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Tue, 16 Aug 2005 08:52:29 +1200
From: Danny Smith <dannysmith AT clear DOT net DOT nz>
Subject: Re: g++ defines for win32
To: fn42551 AT fmi DOT uni-sofia DOT bg
Cc: cygwin AT cygwin DOT com
Message-id: <003701c5a1db$41230110$f14861cb@anykey>
MIME-version: 1.0

On Sun, 14 Aug 2005, Angel Tsankov wrote:

> It seems I've come upon an interesting issue, probably a bug. Here it
> is:
> I have a header file that defines __stdcall, __fastdecl and __cdecl.
> If the preprocessor uses the CPLUS_INCLUDE_PATH to find that header
> file, then it does not issue a warning saying that any of the above
> identifiers has been redefined. If, however, it does not use that
> environment variable, then it DOES issue the warning.



Setting CPLUS_INCLUDE_PATH to include the dir containing your header
file and including the header as <header.h> make it a system header. GCC
does not warn about system headers unless you specify -Wsystem-headers 

For your original problem, why not just #undef the builtin defines
before
redefining  You don't need __GNUC__ version info for that.


Danny


--
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