diff options
author | rubidium <rubidium@openttd.org> | 2014-06-17 19:01:45 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-06-17 19:01:45 +0000 |
commit | ab964a6ceed04d64fc1568196ba7c2adfc6d0c49 (patch) | |
tree | 36fcb4e7efa2e7bc099cfa38fa5eb48e9c8284af /src/safeguards.h | |
parent | 37b1d36fb89b11b1bf0d5547fcebc542596e4e20 (diff) | |
download | openttd-ab964a6ceed04d64fc1568196ba7c2adfc6d0c49.tar.xz |
(svn r26651) -Fix: make sure an abs is used that supports int64 when using abs on those variables
Diffstat (limited to 'src/safeguards.h')
-rw-r--r-- | src/safeguards.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/safeguards.h b/src/safeguards.h index 12d704879..f447627e6 100644 --- a/src/safeguards.h +++ b/src/safeguards.h @@ -56,4 +56,19 @@ /* No clear replacement. */ #define strtok SAFEGUARD_DO_NOT_USE_THIS_METHOD +/* Use our own templated implementation instead of a macro or function with only one type. */ +#ifdef min +#undef min +#endif + +/* Use our own templated implementation instead of a macro or function with only one type. */ +#ifdef max +#undef max +#endif + +/* Use our own templated implementation instead of a macro or function with only one type. */ +#ifdef abs +#undef abs +#endif + #endif /* SAFEGUARDS_H */ |