diff options
Diffstat (limited to 'src/osd/windows/winprefix.h')
-rw-r--r-- | src/osd/windows/winprefix.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/osd/windows/winprefix.h b/src/osd/windows/winprefix.h index 2635685eff1..979a11d9386 100644 --- a/src/osd/windows/winprefix.h +++ b/src/osd/windows/winprefix.h @@ -20,6 +20,14 @@ #if _MSC_VER < 1500 #define vsnprintf _vsnprintf #endif +#if _MSC_VER < 1800 +#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 strtoll _strtoi64 +#endif #if _MSC_VER < 1900 #define snprintf _snprintf #else @@ -40,14 +48,5 @@ #define min(x,y) fmin(x,y) #define max(x,y) fmax(x,y) #endif -#ifdef _MSC_VER -#if _MSC_VER < 1800 -#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; } -#endif -#endif #define PATH_SEPARATOR "\\" |