Unify Windows.h inclusion
Windows.h must be included first and must be included with care regarding WinSock.h and WinSock2.h affair. Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
@@ -19,14 +19,15 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef _WIN32
|
||||
#define _WINSOCKAPI_ // Prevent inclusion of winsock.h in windows.h.
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
#include <sal.h>
|
||||
#include <istream>
|
||||
#include <ostream>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#ifdef _WIN32
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
|
||||
#pragma warning(push)
|
||||
|
Reference in New Issue
Block a user