aboutsummaryrefslogtreecommitdiffstats
path: root/json_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'json_util.h')
-rw-r--r--json_util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/json_util.h b/json_util.h
index 1005e58..387dbc4 100644
--- a/json_util.h
+++ b/json_util.h
@@ -14,6 +14,15 @@
#include "json_object.h"
+#ifndef json_min
+#define json_min(a,b) ((a) < (b) ? (a) : (b))
+#endif
+
+#ifndef json_max
+#define json_max(a,b) ((a) > (b) ? (a) : (b))
+#endif
+
+
#ifdef __cplusplus
extern "C" {
#endif