Make sure the MIN() macro is defined.
On MinGW this is not automatically the case, thereby breaking the build.
This commit is contained in:
parent
5c32bd1578
commit
c1154bf696
2 changed files with 8 additions and 0 deletions
|
@ -30,6 +30,10 @@
|
|||
#include "utils.h"
|
||||
#include "xalloc.h"
|
||||
|
||||
#ifndef MIN
|
||||
#define MIN(x, y) (((x)<(y))?(x):(y))
|
||||
#endif
|
||||
|
||||
bool send_meta_sptps(void *handle, uint8_t type, const void *buffer, size_t length) {
|
||||
connection_t *c = handle;
|
||||
|
||||
|
|
|
@ -30,6 +30,10 @@
|
|||
#include "utils.h"
|
||||
#include "xalloc.h"
|
||||
|
||||
#ifndef MIN
|
||||
#define MIN(x, y) (((x)<(y))?(x):(y))
|
||||
#endif
|
||||
|
||||
int maxoutbufsize = 0;
|
||||
int mtu_info_interval = 5;
|
||||
int udp_info_interval = 5;
|
||||
|
|
Loading…
Reference in a new issue