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

Hmm...  Maybe just LDFLAGS=-Wl,/mingw/lib/CRT_noglob.o and not have to
code for it in the source.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd/

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