summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-09-23 21:52:17 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-09-24 15:25:03 +0300
commitfa50c60d7b3b4963a9e3810c41a216577f76d7af (patch)
tree89d72ffddb5fdec10fc931f84125bc63691d3af4 /include
parentda3106bf16a7c065e2205297136c6c60b0562dc3 (diff)
mtd-utils: convert to common.h/min
Kill off duplicated min() defines and convert to the common.h one. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'include')
-rw-r--r--include/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 03e6f7c..f2b7b6b 100644
--- a/include/common.h
+++ b/include/common.h
@@ -34,6 +34,7 @@ extern "C" {
#endif
#define MIN(a ,b) ((a) < (b) ? (a) : (b))
+#define min(a, b) MIN(a, b) /* glue for linux kernel source */
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
/* Verbose messages */