MinGW defines size_t and ssize_t for us, so we should not
unconditionally redefine them in stun/win32_common.h. Add an
AC_CHECK_TYPES configure check to avoid this.
AC_CHECK_HEADERS([ifaddrs.h], \
[AC_DEFINE(HAVE_GETIFADDRS, [1], \
[Whether getifaddrs() is available on the system])])
+AC_CHECK_TYPES([size_t, ssize_t])
# Also put matching version in LIBNICE_CFLAGS
GLIB_REQ=2.30
#ifndef _WIN32_COMMON_H
#define _WIN32_COMMON_H
+#include "config.h"
#include <sys/types.h>
/* 7.18.1.1 Exact-width integer types */
typedef long long int64_t;
typedef unsigned long long uint64_t;
-#ifndef _SSIZE_T_
+#ifndef HAVE_SIZE_T
typedef unsigned int size_t;
+#endif
+#ifndef HAVE_SSIZE_T
typedef unsigned long ssize_t;
#endif