diff options
author | rubidium <rubidium@openttd.org> | 2010-02-14 16:52:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-02-14 16:52:15 +0000 |
commit | d0122644afc79b163c3727fa3d382fd6c7cdc774 (patch) | |
tree | 19d608e9ac8cc7be01dd53a70ce8e895e99cb85b | |
parent | 33a96b5ef32499896accf9b32673455be87afe81 (diff) | |
download | openttd-d0122644afc79b163c3727fa3d382fd6c7cdc774.tar.xz |
(svn r19133) -Fix [FS#3621]: [Mac OS X] --enable-desync-debug failed compiling (planetmaker)
-rw-r--r-- | src/core/random_func.hpp | 6 |
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); |