summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2013-09-09 09:55:27 +0100
committerDaniel P. Berrange <berrange@redhat.com>2013-09-09 16:42:01 +0100
commit5b08fa58ca8c997eaabfb199381f6ea10d1ce1a7 (patch)
tree03fb0ba1e6861264a21a24a8ff8d4286feafdac2
parent074e81518357d931bcacbc4a99b44c9bb70c0472 (diff)
downloadlibvirt-python-split-5b08fa58ca8c997eaabfb199381f6ea10d1ce1a7.zip
libvirt-python-split-5b08fa58ca8c997eaabfb199381f6ea10d1ce1a7.tar.gz
libvirt-python-split-5b08fa58ca8c997eaabfb199381f6ea10d1ce1a7.tar.xz
Add decl of MIN macro
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
-rw-r--r--libvirt-override.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvirt-override.c b/libvirt-override.c
index 6df7db0..00d8e4d 100644
--- a/libvirt-override.c
+++ b/libvirt-override.c
@@ -36,6 +36,10 @@ extern void initcygvirtmod(void);
#define STREQ(a,b) (strcmp(a,b) == 0)
+#ifndef MIN
+# define MIN(a,b) (((a) < (b)) ? (a) : (b))
+#endif
+
#if 0
# define DEBUG_ERROR 1
#endif