This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

g++ defines for win32


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]