From 616c8383c0a4d59deca243437e5d8f07e03f763d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 20 Aug 2018 15:48:49 +0200 Subject: [PATCH] net/IPv4Address: check _WIN32 instead of WIN32 --- src/net/IPv4Address.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/IPv4Address.hxx b/src/net/IPv4Address.hxx index 1dafdcb8a..d7344cede 100644 --- a/src/net/IPv4Address.hxx +++ b/src/net/IPv4Address.hxx @@ -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 }}};