summaryrefslogtreecommitdiff
path: root/ubi-utils/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/src/common.h')
-rw-r--r--ubi-utils/src/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ubi-utils/src/common.h b/ubi-utils/src/common.h
index 06ae623..b27f866 100644
--- a/ubi-utils/src/common.h
+++ b/ubi-utils/src/common.h
@@ -23,6 +23,8 @@
extern "C" {
#endif
+#define MIN(a ,b) ((a) < (b) ? (a) : (b))
+
/* Error messages */
#define errmsg(fmt, ...) do { \
fprintf(stderr, PROGRAM_NAME " error: " fmt "\n", ##__VA_ARGS__); \