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





 
-------------
Jim Michaels
[email protected]
[email protected]
http://JimsComputerRepairandWebDesign.com
http://JesusnJim.com (my personal site, has software)
---
Computer memory measurements, SSD measurements, microsoft disk size 
measurements (note: they will say GB or MB or KB or TB when it is not!):
[KiB] [MiB] [GiB] [TiB]
[2^10B=1,024B=1KiB]
[2^20B=1,048,576B=1MiB]
[2^30B=1,073,741,824B=1GiB]
[2^40B=1,099,511,627,776B=1TiB]
hard disk industry disk size measurements:
[KB] [MB] [GB] [TB]
[10^3B=1,000B=1KB]
[10^6B=1,000,000B=1MB]
[10^9B=1,000,000,000B=1GB]
[10^12B=1,000,000,000,000B=1TB]
------------------------------------------------------------------------------
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