]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Move MIN macro to util.h so that others can use it
authorJiri Denemark <jdenemar@redhat.com>
Wed, 14 Apr 2010 15:40:14 +0000 (17:40 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 22 Apr 2010 08:20:32 +0000 (10:20 +0200)
src/util/util.c
src/util/util.h

index 268944da52170eb8370afc3300b25b75f2d265a0..99383d1e59cc1c740cd977e4bb7b3c555536f724 100644 (file)
 # define NSIG 32
 #endif
 
-#ifndef MIN
-# define MIN(a, b) ((a) < (b) ? (a) : (b))
-#endif
-
 #define VIR_FROM_THIS VIR_FROM_NONE
 
 #define virUtilError(code, ...)                                            \
index 4f0b23300e44e75b49f32cd552757b38cbaa3d73..6bf6bcc3c2f3e6d90479939b64da7ffde807947a 100644 (file)
 # include <sys/select.h>
 # include <sys/types.h>
 
+# ifndef MIN
+#  define MIN(a, b) ((a) < (b) ? (a) : (b))
+# endif
+
 int saferead(int fd, void *buf, size_t count) ATTRIBUTE_RETURN_CHECK;
 ssize_t safewrite(int fd, const void *buf, size_t count)
     ATTRIBUTE_RETURN_CHECK;