Re: [PATCH 04/11] Add _MSC_VER predefine macro to make same behaviors with __MINGW32__ Enable MSVC build. MSVC have the save behaviors with msysgit.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Aug 17, 2009, 16:38 UTC
- Message-ID
- <alpine.DEB.1.00.0908171835590.4991@intel-tinevez-2-302>
- In-Reply-To
- <1250524872-5148-4-git-send-email-lznuaa@gmail.com>
Hi,
On Tue, 18 Aug 2009, Frank Li wrote:
> Signed-off-by: Frank Li <lznuaa@gmail.com>
How about
Test whether WIN32 is defined rather than __MINGW32__
The code which is conditional on MinGW32 is actually conditional on Windows. So test WIN32 rather than __MINGW32__.
This does not break Cygwin builds, as WIN32 is undefined there.
Suggested by Dmitry Potapov
?
Of course, you have to edit your patch accordingly, then.
And yes, I just tested, WIN32 is indeed defined on MinGw32.
Ciao, Dscho