[libvirt] [PATCH libvirt-python 05/14] Add decl of MIN macro

Daniel P. Berrange berrange at redhat.com
Tue Nov 12 18:21:48 UTC 2013


From: "Daniel P. Berrange" <berrange at redhat.com>

Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
 libvirt-utils.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libvirt-utils.h b/libvirt-utils.h
index 26d4059..65b9b3b 100644
--- a/libvirt-utils.h
+++ b/libvirt-utils.h
@@ -24,4 +24,8 @@
 
 #define STREQ(a,b) (strcmp(a,b) == 0)
 
+#ifndef MIN
+# define MIN(a,b) (((a) < (b)) ? (a) : (b))
+#endif
+
 #endif /* __LIBVIRT_UTILS_H__ */
-- 
1.8.3.1




More information about the libvir-list mailing list