Mail Archives: cygwin/2005/08/15/16:52:28
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 -