Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Tue, 16 Aug 2005 08:52:29 +1200
From: Danny Smith <dannysmith@clear.net.nz>
Subject: Re: g++ defines for win32
To: fn42551@fmi.uni-sofia.bg
Cc: cygwin@cygwin.com
Message-id: <003701c5a1db$41230110$f14861cb@anykey>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit

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/

