Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 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 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/