On Sun, Oct 10, 2010 at 14:19, Kai Tietz <ktietz70@...> wrote:
> Hello Dongsheng.
> 2010/10/10 Dongsheng Song <dongsheng.song@...>:
> > Hi all,
> > Since mingw-w64 (32bit) have many new features than mingw32, I must
> > distinguish
> > these two compilers at compile time, how can I do it ?
> If you want to distinguish while compile time you can use the defined
> macros __MINGW64_VERSION_MAJOR & __MINGW64_VERSION_MINOR. Those are
> defined only by mingw-w64 headers. You get those defines by including
> any standard header or by including _mingw.h directly.
> To see if it is a mingw-w64 runtime on link-time, you can check for
> the existance of the function '__mingw_get_crt_info'. See here for
> prototype the _mingw.h header.
> Well, also you can be sure that a target triplet using the -w64-
> vendor key, is mingw-w64 driven.
> I hope I could help you.
> Thanks, __MINGW64_VERSION is I need.
Just for curiosity, how can I use target triplet ? In autotools and config.h