summaryrefslogtreecommitdiff
path: root/src/core/random_func.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/random_func.hpp')
-rw-r--r--src/core/random_func.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/random_func.hpp b/src/core/random_func.hpp
index a2e0ea984..607d802a8 100644
--- a/src/core/random_func.hpp
+++ b/src/core/random_func.hpp
@@ -5,6 +5,11 @@
#ifndef RANDOM_FUNC_HPP
#define RANDOM_FUNC_HPP
+#if defined(__APPLE__)
+ /* Apple already has Random declared */
+ #define Random OTTD_Random
+#endif /* __APPLE__ */
+
/**************
* Warning: DO NOT enable this unless you understand what it does
*