Define WIN32_LEAN_AND_MEAN to avoid including windows.h, when including winsock2.h

This commit is contained in:
2024-03-13 15:10:16 -05:00
parent d2dd95b7cc
commit 8401f74922

View File

@@ -5,6 +5,9 @@ extern "C" {
#define EASYSOCK_H_
#ifdef _WIN32
#define NOGDI // All GDI defines and routines
#define NOUSER // All USER defines and routines
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <winsock.h>
#include <ws2tcpip.h>