diff options
author | hackykid <hackykid@openttd.org> | 2005-06-01 11:52:44 +0000 |
---|---|---|
committer | hackykid <hackykid@openttd.org> | 2005-06-01 11:52:44 +0000 |
commit | f7dcd2e834c28e7b4e4ba6e7833cf79c3b97b335 (patch) | |
tree | 85ffc0991699f19e38f7e937f8b493274594c341 /macros.h | |
parent | 351d7aaa9fd2fe1e5cd464130186727df38e646f (diff) | |
download | openttd-f7dcd2e834c28e7b4e4ba6e7833cf79c3b97b335.tar.xz |
(svn r2390) - Codechange: Fix some warnings on GCC 4.0.0
Diffstat (limited to 'macros.h')
-rw-r--r-- | macros.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |