summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/H5private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 831af24..107ce82 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -80,6 +80,11 @@
# define MAX(a,b) (((a)>(b)) ? (a) : (b))
#endif
+/* absolute value */
+#ifndef ABS
+# define ABS(a) (((a)>=0) ? (a) : -(a))
+#endif
+
/* maximum of three values */
#ifndef MAX3
# define MAX3(a,b,c) MAX(MAX(a,b),c)