summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2007-01-11 12:38:04 +0000
committercelestar <celestar@openttd.org>2007-01-11 12:38:04 +0000
commit6a256ff2dff58b9225fd99bc0e70c6f8172ab29b (patch)
tree32d89087427133254d44e25f29ff72374ff86dcb /src
parent1691b2da618e2701adee128eb5fc4168bff69f59 (diff)
downloadopenttd-6a256ff2dff58b9225fd99bc0e70c6f8172ab29b.tar.xz
(svn r8057) -Codechange: Declare the "new" max template as static line.
Diffstat (limited to 'src')
-rw-r--r--src/macros.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/macros.h b/src/macros.h
index 63d59eb72..9c73f38f3 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -20,7 +20,11 @@
#undef max
#endif
-template <typename T> T max(T a, T b) { return a >= b ? a : b; }
+template <typename T>
+static inline T max(T a, T b)
+{
+ return a >= b ? a : b;
+}
static inline int min(int a, int b) { if (a <= b) return a; return b; }