[libvirt] [PATCH 01/35] util: remove MIN and MAX macros

Ján Tomko jtomko at redhat.com
Mon Oct 14 13:15:19 UTC 2019


They are already defined in glib.h.

(libxml2 also has them defined)

Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
 src/util/virutil.h | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/util/virutil.h b/src/util/virutil.h
index b64a85f49e..15ae67dea2 100644
--- a/src/util/virutil.h
+++ b/src/util/virutil.h
@@ -26,13 +26,6 @@
 #include <unistd.h>
 #include <sys/types.h>
 
-#ifndef MIN
-# define MIN(a, b) ((a) < (b) ? (a) : (b))
-#endif
-#ifndef MAX
-# define MAX(a, b) ((a) > (b) ? (a) : (b))
-#endif
-
 
 int virSetBlocking(int fd, bool blocking) ATTRIBUTE_RETURN_CHECK;
 int virSetNonBlock(int fd) ATTRIBUTE_RETURN_CHECK;
-- 
2.19.2




More information about the libvir-list mailing list