[PATCH] Support cross compiling with MinGW-w64 on Debian GNU/Linux
mdounin at mdounin.ru
Fri Oct 17 14:45:12 UTC 2014
On Wed, Oct 15, 2014 at 09:21:09PM +0900, Kouhei Sutou wrote:
> In <20141014161135.GM31276 at mdounin.ru>
> "Re: [PATCH] Support cross compiling with MinGW-w64 on Debian GNU/Linux" on Tue, 14 Oct 2014 20:11:36 +0400,
> Maxim Dounin <mdounin at mdounin.ru> wrote:
> >> But there is no macro to distinguish MinGW-w64 gcc and MinGW
> >> gcc... So I added MGX_MINGW_W64 and MGX_MINGW macros by
> >> auto/define and use ngx_auto_config.h in ngx_win32_config.h.
> >> How do you think about this approach?
> > It doesn't look like a good approach for me.
> OK. I use another approach.
> I add only 64bit version MinGW-w64 GCC support. We can
> distinguish 64bit version MinGW-w64 GCC by the following
> defined(__GNUC__) && defined(_WIN64)
The MinGW-w64 wiki suggests the __MINGW64_VERSION_MAJOR macro can be
used to distinguish MinGW-w64 and MinGW:
More information about the nginx-devel