net/IPv4Address: check _WIN32 instead of WIN32

This commit is contained in:
Max Kellermann 2018-08-20 15:48:49 +02:00
parent 5de46268af
commit 616c8383c0

View File

@ -48,7 +48,7 @@
class IPv4Address {
struct sockaddr_in address;
#ifdef WIN32
#ifdef _WIN32
static constexpr struct in_addr ConstructInAddr(uint8_t a, uint8_t b,
uint8_t c, uint8_t d) noexcept {
return {{{ a, b, c, d }}};