Fix Windows UWP build.

This commit is contained in:
Henrik Rydgård 2020-07-21 23:37:42 +02:00
parent dbb821a7c9
commit 7e229ddd63
1 changed files with 6 additions and 1 deletions

View File

@ -32,6 +32,12 @@ typedef unsigned short uint16_t;
#define strncasecmp memicmp #define strncasecmp memicmp
#endif /* defined(_MSC_VER) && (_MSC_VER >= 1400) */ #endif /* defined(_MSC_VER) && (_MSC_VER >= 1400) */
#endif /* #ifndef strncasecmp */ #endif /* #ifndef strncasecmp */
#if defined(WINAPI_FAMILY) && defined(WINAPI_FAMILY_PARTITION)
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP
#define in6addr_any in6addr_any_init
static const IN6_ADDR in6addr_any_init = {0};
#endif
#endif
#endif /* _WIN32 */ #endif /* _WIN32 */
#if defined(__amigaos__) || defined(__amigaos4__) #if defined(__amigaos__) || defined(__amigaos4__)
#include <sys/socket.h> #include <sys/socket.h>
@ -922,4 +928,3 @@ error:
closesocket(sudp); closesocket(sudp);
return devlist; return devlist;
} }