[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patches for MSVC
From: |
Benjamin Lindner |
Subject: |
Re: Patches for MSVC |
Date: |
Mon, 22 Feb 2010 09:07:43 +0100 |
>
> Well, MinGW provides its own version of windows.h, while I'm using
> the standard MS Platform SDK. I guess the MinGW version does not
> provides a #define for min/max.
Yes it does, in windef.h
#ifndef NOMINMAX
#ifndef max
#define max(a,b) ((a)>(b)?(a):(b))
#endif
#ifndef min
#define min(a,b) ((a)<(b)?(a):(b))
#endif
#endif
So -DNOMINMAX would be also required for mingw platform.
benjamin
--
Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -
jetzt kostenlos herunterladen! http://portal.gmx.net/de/go/chbrowser
- Patches for MSVC, Michael Goffioul, 2010/02/21
- Patches for MSVC, John W. Eaton, 2010/02/21
- Re: Patches for MSVC, Michael Goffioul, 2010/02/21
- Re: Patches for MSVC, Michael Goffioul, 2010/02/21
- Re: Patches for MSVC, John W. Eaton, 2010/02/21
- Re: Patches for MSVC, Michael Goffioul, 2010/02/21
- Re: Patches for MSVC,
Benjamin Lindner <=
- Re: Patches for MSVC, Michael Goffioul, 2010/02/22
- Re: Patches for MSVC, Benjamin Lindner, 2010/02/22
- Re: Patches for MSVC, John W. Eaton, 2010/02/22