g++ defines for win32

Angel Tsankov fn42551@fmi.uni-sofia.bg
Sat Aug 13 18:10:00 GMT 2005


I downloaded g++ from cygwin and installed it. I noticed that it has 
built-in definitions of __stdcall, __cdecl and __fastcall. I've come 
across other g++ builds for Windows that do not have definitions for 
these identifiers, so I had to filter them out from my source code 
with the help of macros. Now I need to know how to distinguish this 
build of g++ from others in order to not filter the above identifiers 
out.
Here's what I have now:

#if !(defined (_MSC_VER) || (defined (__GNUC__) && defined 
(__WIN32__)))
 #define __cdecl
 #define __stdcall
 #define __fastcall
#endif

Angel Tsankov
fn42551@fmi.uni-sofia.bg 


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



More information about the Cygwin mailing list