summaryrefslogtreecommitdiff
path: root/shim.h
diff options
context:
space:
mode:
Diffstat (limited to 'shim.h')
-rw-r--r--shim.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/shim.h b/shim.h
index 01622299..41963ecf 100644
--- a/shim.h
+++ b/shim.h
@@ -228,4 +228,7 @@ verify_buffer (char *data, int datasize,
#define LogError(fmt, ...) \
LogError_(__FILE__, __LINE__ - 1, __func__, fmt, ##__VA_ARGS__)
+#define MIN(a, b) (((a) <= (b))?(a):(b))
+#define MAX(a, b) (((a) <= (b))?(b):(a))
+
#endif /* SHIM_H_ */