[libvirt] [libvirt-python PATCHv2 05/44] Add decl of MIN macro

Doug Goldstein cardoe at cardoe.com
Tue Nov 19 19:35:24 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 bec7346..aed64e6 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.2




More information about the libvir-list mailing list