summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-02-14 16:52:15 +0000
committerrubidium <rubidium@openttd.org>2010-02-14 16:52:15 +0000
commitd0122644afc79b163c3727fa3d382fd6c7cdc774 (patch)
tree19d608e9ac8cc7be01dd53a70ce8e895e99cb85b /src/core
parent33a96b5ef32499896accf9b32673455be87afe81 (diff)
downloadopenttd-d0122644afc79b163c3727fa3d382fd6c7cdc774.tar.xz
(svn r19133) -Fix [FS#3621]: [Mac OS X] --enable-desync-debug failed compiling (planetmaker)
Diffstat (limited to 'src/core')
-rw-r--r--src/core/random_func.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/random_func.hpp b/src/core/random_func.hpp
index 30e5bdd17..d0e12ba92 100644
--- a/src/core/random_func.hpp
+++ b/src/core/random_func.hpp
@@ -85,7 +85,11 @@ static inline void RestoreRandomSeeds(const SavedRandomSeeds &storage)
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);