summaryrefslogtreecommitdiffstats
path: root/utils/imxtools/sbtools
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-12-16 21:06:02 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2012-12-16 21:28:41 +0100
commitbe9787f2e62ed7eb741bee635e3d4dc26bc2d426 (patch)
treee7c8b787c3fd0b29bff3c93355bc7fbec8cfe592 /utils/imxtools/sbtools
parente3f45226bdb7a12067df93a0b2b0e1705d80cbbe (diff)
downloadrockbox-be9787f2e62ed7eb741bee635e3d4dc26bc2d426.tar.gz
rockbox-be9787f2e62ed7eb741bee635e3d4dc26bc2d426.tar.bz2
rockbox-be9787f2e62ed7eb741bee635e3d4dc26bc2d426.zip
imxtools/sbtools: update misc with MIN
Change-Id: I17daaff068fcd3a8c70c52db5fa209082461173f
Diffstat (limited to 'utils/imxtools/sbtools')
-rw-r--r--utils/imxtools/sbtools/misc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/imxtools/sbtools/misc.h b/utils/imxtools/sbtools/misc.h
index 438338f4bb..06e8166c09 100644
--- a/utils/imxtools/sbtools/misc.h
+++ b/utils/imxtools/sbtools/misc.h
@@ -27,6 +27,10 @@
#define _STR(a) #a
#define STR(a) _STR(a)
+#ifndef MIN
+#define MIN(a,b) ((a) < (b) ? (a) : (b))
+#endif
+
#define bug(...) do { fprintf(stderr,"["__FILE__":"STR(__LINE__)"]ERROR: "__VA_ARGS__); exit(1); } while(0)
#define bugp(...) do { fprintf(stderr, __VA_ARGS__); perror(" "); exit(1); } while(0)