提交 60aef9e4 编写于 作者: J Jiri Denemark

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

上级 e07314f4
......@@ -79,10 +79,6 @@
# 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, ...) \
......
......@@ -32,6 +32,10 @@
# 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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册