summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorBert Münnich <be.muennich@googlemail.com>2012-08-16 13:09:44 +0200
committerBert Münnich <be.muennich@googlemail.com>2012-08-16 13:09:44 +0200
commit8a652a786c2edc5f630d6f032d8ef775cdea9142 (patch)
treeee3dd5cef32c277fc9722783c7c01dea2b9db5de /util.h
parent4ce323213dbafd8e82b7f0cbcf4d7d20598ddf22 (diff)
downloadnsxiv-8a652a786c2edc5f630d6f032d8ef775cdea9142.tar.zst
Corrected zoom level handling
Diffstat (limited to 'util.h')
-rw-r--r--util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/util.h b/util.h
index f1f4f14..2a139ec 100644
--- a/util.h
+++ b/util.h
@@ -27,6 +27,9 @@
#include "types.h"
+#ifndef ABS
+#define ABS(a) ((a) < 0 ? -(a) : (a))
+#endif
#ifndef MIN
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#endif