Skip to content

Commit

Permalink
code: added void ptr cast & winnt >= 0x0600
Browse files Browse the repository at this point in the history
  • Loading branch information
inlife committed Jul 30, 2022
1 parent 79453b8 commit f668588
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/enet.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@
#endif

#ifdef __GNUC__
#if (_WIN32_WINNT < 0x0501)
#if (_WIN32_WINNT < 0x0600)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#define _WIN32_WINNT 0x0600
#endif
#endif

Expand Down Expand Up @@ -5088,7 +5088,7 @@ extern "C" {
}
}
else {
if (inet_ntop(AF_INET6, &address->host, name, nameLength) == NULL) {
if (inet_ntop(AF_INET6, (void*)&address->host, name, nameLength) == NULL) {
return -1;
}
}
Expand Down

0 comments on commit f668588

Please sign in to comment.