summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/util/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/util/util.h b/lib/util/util.h
index 0f09747a3a..ec1cfef110 100644
--- a/lib/util/util.h
+++ b/lib/util/util.h
@@ -67,6 +67,10 @@ size_t valgrind_strlen(const char *s);
#endif
#endif
+#ifndef ABS
+#define ABS(a) ((a)>0?(a):(-(a)))
+#endif
+
#include "../lib/util/memory.h"
/**