mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-26 01:23:37 +02:00
fix min and max in VS2013
This commit is contained in:
@@ -169,10 +169,14 @@ extern unsigned char ZSIZE;
|
|||||||
#define strcasecmp stricmp
|
#define strcasecmp stricmp
|
||||||
#endif
|
#endif
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
|
#if _MSC_VER < 1800
|
||||||
#define fmin min
|
#define fmin min
|
||||||
#define fminf min
|
#define fminf min
|
||||||
#define fmax max
|
#define fmax max
|
||||||
#define fmaxf max
|
#define fmaxf max
|
||||||
|
#else
|
||||||
|
#include <algorithm>
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
|
Reference in New Issue
Block a user