VS2012 is not supported anymore (nw)

This commit is contained in:
Miodrag Milanovic 2015-12-07 19:41:24 +01:00
parent 547efb0146
commit bc86cde3c6

View File

@ -232,17 +232,6 @@ typedef ptrdiff_t ssize_t;
#if _MSC_VER < 1900 // VS2013 or earlier
#define snprintf _snprintf
#define __func__ __FUNCTION__
#if _MSC_VER < 1800 // VS2012 or earlier
#define alloca _alloca
#define round(x) floor((x) + 0.5)
#define strtoll _strtoi64
#define _USE_MATH_DEFINES
#include <math.h>
static __inline double fmin(double x, double y){ return (x < y) ? x : y; }
static __inline double fmax(double x, double y){ return (x > y) ? x : y; }
static __inline double log2(double x) { return log(x) * M_LOG2E; }
#define __func__ __FUNCTION__
#endif // VS2012 or earlier
#else // VS2015
#define _CRT_STDIO_LEGACY_WIDE_SPECIFIERS
#endif