joyent/libuv — pull request #384 by luislavena (2012-04-20 01:01:48+00:00)
Title: Actually detect mingw-w64 and not 64bits mode

`__MINGW64__` is only defined when using mingw-w64 in 64bits mode, not when
using the 32bits version of the compiler.

Instead, to detect usage of mingw-w64 instead of mingw version of GCC we
should look at `__MINGW64_VERSION_MAJOR` and `__MINGW64_VERSION_MINOR`. If one
of these is defined means we are running on mingw-w64 compiler and headers
and not mingw.org build.

Read more here: http://bit.ly/detect-mingw-w64-vs-mingw

This patch solves #383