Move MIN macro to util.h so that others can use it

This commit is contained in:
Jiri Denemark 2010-04-14 17:40:14 +02:00
parent e07314f4c1
commit 60aef9e467
2 changed files with 4 additions and 4 deletions

View File

@ -79,10 +79,6 @@
# define NSIG 32 # define NSIG 32
#endif #endif
#ifndef MIN
# define MIN(a, b) ((a) < (b) ? (a) : (b))
#endif
#define VIR_FROM_THIS VIR_FROM_NONE #define VIR_FROM_THIS VIR_FROM_NONE
#define virUtilError(code, ...) \ #define virUtilError(code, ...) \

View File

@ -32,6 +32,10 @@
# include <sys/select.h> # include <sys/select.h>
# include <sys/types.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; int saferead(int fd, void *buf, size_t count) ATTRIBUTE_RETURN_CHECK;
ssize_t safewrite(int fd, const void *buf, size_t count) ssize_t safewrite(int fd, const void *buf, size_t count)
ATTRIBUTE_RETURN_CHECK; ATTRIBUTE_RETURN_CHECK;