fix min and max in VS2013

This commit is contained in:
jacob1 2013-09-27 17:39:16 -04:00
parent bc6a380c4c
commit 48f1adb038

View File

@ -169,10 +169,14 @@ extern unsigned char ZSIZE;
#define strcasecmp stricmp
#endif
#if defined(_MSC_VER)
#if _MSC_VER < 1800
#define fmin min
#define fminf min
#define fmax max
#define fmaxf max
#else
#include <algorithm>
#endif
#endif
#if defined(_MSC_VER)