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
commitf7dcd2e834c28e7b4e4ba6e7833cf79c3b97b335 (patch)
tree85ffc0991699f19e38f7e937f8b493274594c341 /macros.h
parent351d7aaa9fd2fe1e5cd464130186727df38e646f (diff)
downloadopenttd-f7dcd2e834c28e7b4e4ba6e7833cf79c3b97b335.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; }