summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-11-01 20:44:12 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-11-01 20:44:12 +0100
commite5081d6dad3924ac0a816878a6af5266f87bbfb7 (patch)
tree710797bc5578c1a9f0bc7e0cb5d2a51c526aebfd /lib/util
parent7bdb571ec4eea6689fa08f40be8b4c0133504f50 (diff)
downloadsamba-e5081d6dad3924ac0a816878a6af5266f87bbfb7.tar.gz
samba-e5081d6dad3924ac0a816878a6af5266f87bbfb7.tar.bz2
samba-e5081d6dad3924ac0a816878a6af5266f87bbfb7.zip
Move ABS() to libutil.
Diffstat (limited to 'lib/util')
-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"
/**