On Sat, Dec 3, 2011 at 2:34 AM, Pau Garcia i Quiles
<[email protected]> wrote:
> 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


Thanks for doing this.  Note that the included header needn't
be stdlib.h itself: any crt header would do.  If one wants to
include the least intrusive header, that would be _mingw.h


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

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