aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2009-06-11 08:54:40 +0300
committerPetri Lehtinen <petri@digip.org>2009-06-11 08:54:40 +0300
commit9b825f7b1832381a6f25199ffff3f88e0bee3295 (patch)
tree02fb5c885629753e598a4cc098054d3d9ea15d13 /src/util.h
parent7764f3f3213d345a4091197563aeae15d59bf7df (diff)
downloadjansson-9b825f7b1832381a6f25199ffff3f88e0bee3295.zip
jansson-9b825f7b1832381a6f25199ffff3f88e0bee3295.tar.gz
jansson-9b825f7b1832381a6f25199ffff3f88e0bee3295.tar.bz2
Move max() to util.h
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
new file mode 100644
index 0000000..5bffa9b
--- /dev/null
+++ b/src/util.h
@@ -0,0 +1,6 @@
+#ifndef UTIL_H
+#define UTIL_H
+
+#define max(a, b) ((a) > (b) ? (a) : (b))
+
+#endif