aboutsummaryrefslogtreecommitdiff
path: root/source/port.h
diff options
context:
space:
mode:
authorJoão Silva2017-02-12 01:52:03 +0000
committerJoão Silva2017-02-12 01:52:03 +0000
commit3777d1fcf4232cde426f46b7ee5c374fd949b1b0 (patch)
treee76f38bc1bac83bab19daea51d63ed87236e047e /source/port.h
parentb6006bc542f89ad1b7086268f851f0ba880ad6cd (diff)
downloadsnesemu-3777d1fcf4232cde426f46b7ee5c374fd949b1b0.tar.gz
snesemu-3777d1fcf4232cde426f46b7ee5c374fd949b1b0.tar.bz2
snesemu-3777d1fcf4232cde426f46b7ee5c374fd949b1b0.zip
Type fixes. Fixes from snes9x 1.50. Minor changes and optimizations.
Diffstat (limited to 'source/port.h')
-rw-r--r--source/port.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/port.h b/source/port.h
index b887fe1..bbe28c3 100644
--- a/source/port.h
+++ b/source/port.h
@@ -53,7 +53,8 @@ void _splitpath(const char* path, char* drive, char* dir, char* fname,
#include <libretro.h>
-#define MIN(A,B) ((A) < (B) ? (A) : (B))
-#define MAX(A,B) ((A) > (B) ? (A) : (B))
+#define ABS(X) ((X) < 0 ? -(X) : (X))
+#define MIN(A,B) ((A) < (B) ? (A) : (B))
+#define MAX(A,B) ((A) > (B) ? (A) : (B))
#endif