Mercurial > hg > openttd
changeset 14562:5ccc732d3142 draft
(svn r19133) -Fix [FS#3621]: [Mac OS X] --enable-desync-debug failed compiling (planetmaker)
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 14 Feb 2010 16:52:15 +0000 |
parents | c94cddea6802 |
children | 9bc562461fcf |
files | src/core/random_func.hpp |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/random_func.hpp +++ b/src/core/random_func.hpp @@ -85,7 +85,11 @@ void SetRandomSeed(uint32 seed); #ifdef RANDOM_DEBUG - #define Random() DoRandom(__LINE__, __FILE__) + #ifdef __APPLE__ + #define OTTD_Random() DoRandom(__LINE__, __FILE__) + #else + #define Random() DoRandom(__LINE__, __FILE__) + #endif uint32 DoRandom(int line, const char *file); #define RandomRange(max) DoRandomRange(max, __LINE__, __FILE__) uint DoRandomRange(uint max, int line, const char *file);