diff include/mb_tools.h @ 375:44b8223f307c

Rename MIN/MAX to MB_MIN/MB_MAX. - MIN and MAX are conflicted with system's macros.
author Thinker K.F. Li <thinker@branda.to>
date Wed, 01 Apr 2009 02:16:10 +0800
parents bd8ea44b421e
children c6c0d017dc8e
line wrap: on
line diff
--- a/include/mb_tools.h	Wed Apr 01 02:00:49 2009 +0800
+++ b/include/mb_tools.h	Wed Apr 01 02:16:10 2009 +0800
@@ -138,7 +138,7 @@
 #define MEM2OBJ(var, type, mem) ((type *)((void *)var - OFFSET(type, mem)))
 #define OFF2TYPE(obj, off, type) (*(type *)((void *)(obj) + (off)))
 
-#define MAX(a, b) ((a) > (b)? (a): (b))
-#define MIN(a, b) ((a) < (b)? (a): (b))
+#define MB_MAX(a, b) ((a) > (b)? (a): (b))
+#define MB_MIN(a, b) ((a) < (b)? (a): (b))
 
 #endif /* __TOOLS_H_ */