Make sure the MIN() macro is defined.

On MinGW this is not automatically the case, thereby breaking the build.
This commit is contained in:
Etienne Dechamps 2015-05-17 22:21:11 +01:00
parent 5c32bd1578
commit c1154bf696
2 changed files with 8 additions and 0 deletions

View file

@ -30,6 +30,10 @@
#include "utils.h" #include "utils.h"
#include "xalloc.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) { bool send_meta_sptps(void *handle, uint8_t type, const void *buffer, size_t length) {
connection_t *c = handle; connection_t *c = handle;

View file

@ -30,6 +30,10 @@
#include "utils.h" #include "utils.h"
#include "xalloc.h" #include "xalloc.h"
#ifndef MIN
#define MIN(x, y) (((x)<(y))?(x):(y))
#endif
int maxoutbufsize = 0; int maxoutbufsize = 0;
int mtu_info_interval = 5; int mtu_info_interval = 5;
int udp_info_interval = 5; int udp_info_interval = 5;