| 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 |
| r242687 | r242688 | |
|---|---|---|
| 38 | 38 | #define min(x,y) fmin(x,y) |
| 39 | 39 | #define max(x,y) fmax(x,y) |
| 40 | 40 | #endif |
| 41 | #ifdef _MSC_VER | |
| 42 | #if _MSC_VER < 1800 | |
| 43 | #define _USE_MATH_DEFINES | |
| 44 | #include <math.h> | |
| 45 | static __inline double fmin(double x, double y){ return (x < y) ? x : y; } | |
| 46 | static __inline double fmax(double x, double y){ return (x > y) ? x : y; } | |
| 47 | static __inline double log2(double x) { return log(x) * M_LOG2E; } | |
| 48 | #endif | |
| 49 | #endif | |
| 41 | 50 | |
| 42 | 51 | #define PATH_SEPARATOR "\\" |
| https://github.com/mamedev/mame/commit/17f660d6eb3745f040dcb6f366ecf1ec24b63efc |
| Previous | 199869 Revisions | Next |