Thanks for answers! I need this because support for wmihelper in Qt5 for
mingw-w64

2012/10/16 Ruben Van Boxem <[email protected]>

> 2012/10/16 Kai Tietz <[email protected]>
>
>> 2012/10/16 Antony Riakiotakis <[email protected]>:
>> > Usually __MINGW64__ is defined so you can check for that in the source.
>>
>> First, that define is only set for 64-bit mode, but mingw-w64 also
>> supports 32-bit (old mingw.org) mode.  Secondly that define is
>> provided by the compiler and isn't runtime-specific at all.
>> As long as programmer of an application didn't provided a function to
>> answer your question, you won't be able to detect it that easy.  There
>> are ways to find out by inspecting startup-code, which is slightly
>> different between both ventures.
>>
>
> Something I use when I need it:
>
> #ifdef __MINGW32__ // on some form of MinGW toolchain
> #include <_mingw.h> // MinGW internal header present for all MinGW variants
> #ifdef __MINGW64_VERSION_MAJOR
> // We're compiling with MinGW-w64 32 or 64-bit
> #else
> // We're compiling with MinGW.org
> #endif
> #endif
>
> See here:
> http://www.mail-archive.com/[email protected]/msg00638.html
> __MINGW64__ only really signifies x64 Windows and MinGW. I bet that if
> MinGW.org ever come with a 64-bit variant (not likely), they'd define this
> for consistency (just as MinGW-w64 does).
>
> If you need to detect bitness as well, use the builtin GCC defines for
> architecture: http://sourceforge.net/p/predef/wiki/Architectures/
>
> Ruben
>
>
>> Regards,
>> Kai
>>
>>
>> ------------------------------------------------------------------------------
>> Don't let slow site performance ruin your business. Deploy New Relic APM
>> Deploy New Relic app performance management and know exactly
>> what is happening inside your Ruby, Python, PHP, Java, and .NET app
>> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
>> http://p.sf.net/sfu/newrelic-dev2dev
>> _______________________________________________
>> Mingw-w64-public mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>>
>
>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to