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

[libvirt] [PATCHv2 1/9] util: define MAX



If util.h is going to have a MIN, it may as well also have MAX.
---
 src/util/util.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/util/util.h b/src/util/util.h
index e8197be..af8b15d 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -35,6 +35,9 @@
 # ifndef MIN
 #  define MIN(a, b) ((a) < (b) ? (a) : (b))
 # endif
+# ifndef MAX
+#  define MAX(a, b) ((a) > (b) ? (a) : (b))
+# endif
 
 ssize_t saferead(int fd, void *buf, size_t count) ATTRIBUTE_RETURN_CHECK;
 ssize_t safewrite(int fd, const void *buf, size_t count)
-- 
1.7.3.4


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