aboutsummaryrefslogtreecommitdiff
path: root/source/port.h
diff options
context:
space:
mode:
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