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

master
Aadhavan Srinivasan 9 months ago
parent d2dd95b7cc
commit 8401f74922

@ -5,6 +5,9 @@ extern "C" {
#define EASYSOCK_H_ #define EASYSOCK_H_
#ifdef _WIN32 #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 <winsock2.h>
#include <winsock.h> #include <winsock.h>
#include <ws2tcpip.h> #include <ws2tcpip.h>

Loading…
Cancel
Save