fmin()/fmax() is available with vs2012 and newer. patch from Eric Wasylishen.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@907 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2014-04-28 05:50:58 +00:00
parent 2dbd1fb411
commit 2373b95d36
1 changed files with 4 additions and 1 deletions

View File

@ -35,9 +35,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# pragma warning(disable:4267)
/* 'var' : conversion from 'size_t' to 'type',
possible loss of data (/Wp64 warning) */
/* MSC doesn't have fmin() / fmax(), use the min/max macros: */
/* MSC has fmin() / fmax() in VS2013, and according to the
* docs, VS2012. Use the min/max macros on earlier versions: */
#if _MSC_VER < 1700
#define fmax q_max
#define fmin q_min
#endif
#endif /* _MSC_VER */
#endif /* _WIN32 */