trunk/src/osd/windows/winprefix.h
| r243285 | r243286 | |
| 20 | 20 | #if _MSC_VER < 1500 |
| 21 | 21 | #define vsnprintf _vsnprintf |
| 22 | 22 | #endif |
| 23 | #if _MSC_VER < 1800 |
| 24 | #define _USE_MATH_DEFINES |
| 25 | #include <math.h> |
| 26 | static __inline double fmin(double x, double y){ return (x < y) ? x : y; } |
| 27 | static __inline double fmax(double x, double y){ return (x > y) ? x : y; } |
| 28 | static __inline double log2(double x) { return log(x) * M_LOG2E; } |
| 29 | #define strtoll _strtoi64 |
| 30 | #endif |
| 23 | 31 | #if _MSC_VER < 1900 |
| 24 | 32 | #define snprintf _snprintf |
| 25 | 33 | #else |
| r243285 | r243286 | |
| 40 | 48 | #define min(x,y) fmin(x,y) |
| 41 | 49 | #define max(x,y) fmax(x,y) |
| 42 | 50 | #endif |
| 43 | | #ifdef _MSC_VER |
| 44 | | #if _MSC_VER < 1800 |
| 45 | | #define _USE_MATH_DEFINES |
| 46 | | #include <math.h> |
| 47 | | static __inline double fmin(double x, double y){ return (x < y) ? x : y; } |
| 48 | | static __inline double fmax(double x, double y){ return (x > y) ? x : y; } |
| 49 | | static __inline double log2(double x) { return log(x) * M_LOG2E; } |
| 50 | | #endif |
| 51 | | #endif |
| 52 | 51 | |
| 53 | 52 | #define PATH_SEPARATOR "\\" |