Hi,

This question is asked so often I contributed an entry for mingw-w64 to Predef:

http://sourceforge.net/apps/mediawiki/predef/index.php?title=Compilers#MinGW


On Sat, Dec 3, 2011 at 1:11 AM, Jim Michaels <[email protected]> wrote:
> in my programs (hopefully using #ifdefs), how do I detect mingw as opposed
> to mingw-w64 auto build?
>
> //turn off globbing
> #if defined(__MINGW32__)
>     #if defined(_Win64)
>         //well, this really applies to the mingw-w64 32 and 64-bit
> compilers,
>         //but I don't know how to detect that compiler to #ifdef this
> properly.
>         int _dowildcard = 0; //disable globbing in mingw-w64 sezero
> toolchain
>     #else
>         //mingw
>         int _CRT_glob = 0;
>     #endif
> #elif defined(__DJGPP__)
> //http://www.delorie.com/djgpp/v2faq/faq16_2.html
> char **__crt0_glob_function(char *_argument) {
>     return 0; //cause no expansion
> }
> #endif

-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)

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