Stefan Weil <s...@weilnetz.de> writes: > Am 13.12.2016 um 13:33 schrieb Laurent Vivier: >> Le 29/11/2016 à 16:07, Yuval Shaia a écrit : >>> diff --git a/slirp/slirp.h b/slirp/slirp.h >>> index a1f3139..3877f66 100644 >>> --- a/slirp/slirp.h >>> +++ b/slirp/slirp.h >>> @@ -292,9 +292,4 @@ int tcp_emu(struct socket *, struct mbuf *); >>> int tcp_ctl(struct socket *); >>> struct tcpcb *tcp_drop(struct tcpcb *tp, int err); >>> >>> -#ifndef _WIN32 >>> -#define min(x,y) ((x) < (y) ? (x) : (y)) >>> -#define max(x,y) ((x) > (y) ? (x) : (y)) >>> -#endif >>> - >> It seems the defines have been added because they are already defined >> for Win32. >> >> If we remove them, do we know if MIN()/MAX() are defined for Win32? >> [CC: host W32 maintainer] >> >> Thanks, >> Laurent > > Neither MIN nor MAX are defined in the header files provided with Mingw-w64.
osdep.h provides them, and it's by convention included first by every .c.