Define WIN32_LEAN_AND_MEAN to avoid including windows.h, when including winsock2.h
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user