This is the mail archive of the
cygwin
mailing list for the Cygwin project.
g++ defines for win32
- From: "Angel Tsankov" <fn42551 at fmi dot uni-sofia dot bg>
- To: "cygwin mailing list" <cygwin at cygwin dot com>
- Date: Sat, 13 Aug 2005 21:10:03 +0300
- Subject: 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/