On Mon, Nov 28, 2011 at 9:06 PM, Luis Lavena <[email protected]> wrote:
> Hello Guys,
>
> I'm trying to find any document or hint on how to detect the different
> vendors without checking the triplet of GCC.
>
> Is there a define I can use to compare?
>
> I know __MINGW32__ is defined on both mingw.org and mingw-w64 and
> *also* defined when compiling with mingw-w64 in 64bits mode.
>
> Thank you in advance and apologies if this was already answered, by
> keyword search didn't return any useful information.

I usually do:

#ifdef __MINGW32__
#include <_mingw.h>
#ifdef __MINGW64_VERSION_MAJOR
#define HAVE_MINGW_W64 /* or something like it */
#endif
#endif

> --
> Luis Lavena
> AREA 17
> -
> Perfection in design is achieved not when there is nothing more to add,
> but rather when there is nothing more to take away.
> Antoine de Saint-Exupéry

--
O.S.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to