mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
Move MIN macro to util.h so that others can use it
This commit is contained in:
parent
e07314f4c1
commit
60aef9e467
@ -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, ...) \
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user