From d0122644afc79b163c3727fa3d382fd6c7cdc774 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 14 Feb 2010 16:52:15 +0000 Subject: (svn r19133) -Fix [FS#3621]: [Mac OS X] --enable-desync-debug failed compiling (planetmaker) --- src/core/random_func.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-54-g00ecf