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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



They are already defined in glib.h.

(libxml2 also has them defined)

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux