[rtems commit] dosfs: Avoid MIN() re-definition

Sebastian Huber sebh at rtems.org
Thu Nov 20 13:53:25 UTC 2014


Module:    rtems
Branch:    master
Commit:    7bfa0970d4956d6d8197027fdc2dc4827acf8481
Changeset: http://git.rtems.org/rtems/commit/?id=7bfa0970d4956d6d8197027fdc2dc4827acf8481

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Nov 17 13:00:17 2014 +0100

dosfs: Avoid MIN() re-definition

---

 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




More information about the vc mailing list