summaryrefslogtreecommitdiff
path: root/macros.h
diff options
context:
space:
mode:
authorhackykid <hackykid@openttd.org>2005-06-01 11:52:44 +0000
committerhackykid <hackykid@openttd.org>2005-06-01 11:52:44 +0000
commit2f1a224ea9ff26a3633c1ce2aba427538c3a0d06 (patch)
tree85ffc0991699f19e38f7e937f8b493274594c341 /macros.h
parent799e1f5c50662cfa334e2b759925badf70bf5b0d (diff)
downloadopenttd-2f1a224ea9ff26a3633c1ce2aba427538c3a0d06.tar.xz
(svn r2390) - Codechange: Fix some warnings on GCC 4.0.0
Diffstat (limited to 'macros.h')
-rw-r--r--macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/macros.h b/macros.h
index eb11b8a5c..bacd9ceb7 100644
--- a/macros.h
+++ b/macros.h
@@ -131,6 +131,8 @@ static inline int KillFirstBit2x64(int value)
static inline int intxchg_(int *a, int b) { int t = *a; *a = b; return t; }
#define intswap(a,b) ((b) = intxchg_(&(a), (b)))
+static inline int uintxchg_(uint *a, uint b) { uint t = *a; *a = b; return t; }
+#define uintswap(a,b) ((b) = uintxchg_(&(a), (b)))
static inline int myabs(int a) { if (a<0) a = -a; return a; }
static inline int64 myabs64(int64 a) { if (a<0) a = -a; return a; }