trunk/src/osd/windows/winprefix.h
| r243286 | r243287 | |
| 13 | 13 | #ifdef _MSC_VER |
| 14 | 14 | #include <assert.h> |
| 15 | 15 | #include <malloc.h> |
| 16 | | #if _MSC_VER < 1800 |
| 16 | #if _MSC_VER < 1500 // < VS2008 |
| 17 | #define vsnprintf _vsnprintf |
| 18 | #elif _MSC_VER < 1800 // < VS2013 |
| 17 | 19 | #define alloca _alloca |
| 18 | 20 | #define round(x) floor((x) + 0.5) |
| 19 | | #endif |
| 20 | | #if _MSC_VER < 1500 |
| 21 | | #define vsnprintf _vsnprintf |
| 22 | | #endif |
| 23 | | #if _MSC_VER < 1800 |
| 21 | #define strtoll _strtoi64 |
| 24 | 22 | #define _USE_MATH_DEFINES |
| 25 | 23 | #include <math.h> |
| 26 | 24 | static __inline double fmin(double x, double y){ return (x < y) ? x : y; } |
| 27 | 25 | static __inline double fmax(double x, double y){ return (x > y) ? x : y; } |
| 28 | 26 | static __inline double log2(double x) { return log(x) * M_LOG2E; } |
| 29 | | #define strtoll _strtoi64 |
| 30 | | #endif |
| 31 | | #if _MSC_VER < 1900 |
| 27 | #elif _MSC_VER < 1900 // < VS2015 |
| 32 | 28 | #define snprintf _snprintf |
| 33 | 29 | #else |
| 34 | 30 | #pragma warning (disable: 4091) |