summaryrefslogtreecommitdiff
path: root/src/macros.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-02-19 21:11:44 +0000
committerrubidium <rubidium@openttd.org>2007-02-19 21:11:44 +0000
commitaf18972b7aff103dd8edc44b3754f98ec1a31804 (patch)
tree535f4bea06817bca1ec76a8f2534ca3e36f51386 /src/macros.h
parent75006ed3be26f5dc8758e105f61e44a994b9adb0 (diff)
downloadopenttd-af18972b7aff103dd8edc44b3754f98ec1a31804.tar.xz
(svn r8818) -Codechange: remove the #ifdef _cplusplus remnants.
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/macros.h b/src/macros.h
index 56dc219e3..a16d4ddb3 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -18,14 +18,11 @@
#undef max
#endif
-/* Objective C don't like templates */
-#ifdef __cplusplus
template <typename T>
static inline T max(T a, T b)
{
return a >= b ? a : b;
}
-#endif
static inline int min(int a, int b) { if (a <= b) return a; return b; }