Previous 199869 Revisions Next

r34176 Sunday 4th January, 2015 at 02:22:18 UTC by Peter Ferrie
winprefix: support some C99 extensions in older MSVC [Peter Ferrie]
[src/osd/windows]winprefix.h

trunk/src/osd/windows/winprefix.h
r242687r242688
3838#define min(x,y) fmin(x,y)
3939#define max(x,y) fmax(x,y)
4040#endif
41#ifdef _MSC_VER
42#if _MSC_VER < 1800
43#define _USE_MATH_DEFINES
44#include <math.h>
45static __inline double fmin(double x, double y){ return (x < y) ? x : y; }
46static __inline double fmax(double x, double y){ return (x > y) ? x : y; }
47static __inline double log2(double x) { return log(x) * M_LOG2E; }
48#endif
49#endif
4150
4251#define PATH_SEPARATOR      "\\"


Previous 199869 Revisions Next


© 1997-2024 The MAME Team