[PATCH 04/22] dosfs: Avoid MIN() re-definition

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Nov 18 14:37:10 UTC 2014


---
 cpukit/libfs/src/dosfs/fat.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cpukit/libfs/src/dosfs/fat.h b/cpukit/libfs/src/dosfs/fat.h
index 2f0f75f..26f0699 100644
--- a/cpukit/libfs/src/dosfs/fat.h
+++ b/cpukit/libfs/src/dosfs/fat.h
@@ -68,7 +68,9 @@ extern "C" {
 #    define CT_LE_L(v) (v)
 #endif
 
+#ifndef MIN
 #define MIN(a, b)  (((a) < (b)) ? (a) : (b))
+#endif
 
 #define FAT_HASH_SIZE   2
 #define FAT_HASH_MODULE FAT_HASH_SIZE
-- 
1.8.4.5



More information about the devel mailing list