summaryrefslogtreecommitdiff
path: root/drivers/unix
diff options
context:
space:
mode:
authorBartłomiej T. Listwon <blistwon@gmail.com>2021-09-23 08:56:12 +0200
committerBartłomiej T. Listwon <blistwon@gmail.com>2021-09-23 10:35:00 +0200
commit425ed0ffe0880f2c63344c0861ddf37b346b9738 (patch)
treeeab2cefa6b2b636b0b9030b08a811ecfc788f18c /drivers/unix
parenta4b80cdad95e251d3066a6798cffc64bbf45a0e2 (diff)
Add missing WIN32_LEAN_AND_MEAN
Diffstat (limited to 'drivers/unix')
-rw-r--r--drivers/unix/ip_unix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/unix/ip_unix.cpp b/drivers/unix/ip_unix.cpp
index 8a880ab9c8..d32592e81a 100644
--- a/drivers/unix/ip_unix.cpp
+++ b/drivers/unix/ip_unix.cpp
@@ -36,9 +36,9 @@
#ifdef WINDOWS_ENABLED
#include <stdio.h>
-#include <winsock2.h>
-// Needs to be included after winsocks2.h
+#define WIN32_LEAN_AND_MEAN
#include <windows.h>
+#include <winsock2.h>
#include <ws2tcpip.h>
#ifndef UWP_ENABLED
#include <iphlpapi.h>