Previous 199869 Revisions Next

r34774 Saturday 31st January, 2015 at 22:42:53 UTC by Oliver Stöneberg
restored winprefix.h change by Peter Ferrie (nw)

also moved some code around and only defined strtoll when it is actually
necessary
[src/osd/windows]winprefix.h

trunk/src/osd/windows/winprefix.h
r243285r243286
2020#if _MSC_VER < 1500
2121#define vsnprintf _vsnprintf
2222#endif
23#if _MSC_VER < 1800
24#define _USE_MATH_DEFINES
25#include <math.h>
26static __inline double fmin(double x, double y){ return (x < y) ? x : y; }
27static __inline double fmax(double x, double y){ return (x > y) ? x : y; }
28static __inline double log2(double x) { return log(x) * M_LOG2E; }
29#define strtoll _strtoi64
30#endif
2331#if _MSC_VER < 1900
2432#define snprintf _snprintf
2533#else
r243285r243286
4048#define min(x,y) fmin(x,y)
4149#define max(x,y) fmax(x,y)
4250#endif
43#ifdef _MSC_VER
44#if _MSC_VER < 1800
45#define _USE_MATH_DEFINES
46#include <math.h>
47static __inline double fmin(double x, double y){ return (x < y) ? x : y; }
48static __inline double fmax(double x, double y){ return (x > y) ? x : y; }
49static __inline double log2(double x) { return log(x) * M_LOG2E; }
50#endif
51#endif
5251
5352#define PATH_SEPARATOR      "\\"


Previous 199869 Revisions Next


© 1997-2024 The MAME Team