miniupnpc/miniwget.c: define MIN only when not defined by system headers

This commit is contained in:
Thomas Bernard 2014-08-26 20:48:34 +02:00
parent 1961868cd5
commit 626cd2cd6c
1 changed files with 6 additions and 5 deletions

View File

@ -15,7 +15,6 @@
#include <ws2tcpip.h>
#include <io.h>
#define MAXHOSTNAMELEN 64
#define MIN(x,y) (((x)<(y))?(x):(y))
#define snprintf _snprintf
#define socklen_t int
#ifndef strncasecmp
@ -40,12 +39,14 @@
#include <netdb.h>
#define closesocket close
#endif /* #else _WIN32 */
#if defined(__sun) || defined(sun)
#define MIN(x,y) (((x)<(y))?(x):(y))
#endif
#ifdef __GNU__
#define MAXHOSTNAMELEN 64
#endif
#endif /* __GNU__ */
#ifndef MIN
#define MIN(x,y) (((x)<(y))?(x):(y))
#endif /* MIN */
#include "miniupnpcstrings.h"
#include "miniwget.h"