File dmraid-1.0.0.rc15-fix_macro.patch of Package dmraid

Index: 1.0.0.rc15/lib/internal.h
===================================================================
--- 1.0.0.rc15.orig/lib/internal.h	2008-06-12 12:54:32.000000000 +0200
+++ 1.0.0.rc15/lib/internal.h	2008-09-25 15:41:37.000000000 +0200
@@ -49,8 +49,8 @@
 #define	u_int64_t	uint64_t
 #endif
 
-#define min(a, b) (a) < (b) ? (a) : (b)
-#define max(a, b) (a) > (b) ? (a) : (b)
+#define min(a, b) ((a) < (b) ? (a) : (b))
+#define max(a, b) ((a) > (b) ? (a) : (b))
 #define ARRAY_SIZE(a)   (sizeof(a) / sizeof(*a))
 #define ARRAY_END(a)   (a + ARRAY_SIZE(a))
 
openSUSE Build Service is sponsored by