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:
parent
b8816476e5
commit
82935bd8e0
@ -42,6 +42,7 @@
|
||||
/// Sanitizes memory before dismissed
|
||||
///
|
||||
|
||||
#define _WINSOCKAPI_ // Prevent inclusion of winsock.h in windows.h.
|
||||
#include <Windows.h>
|
||||
|
||||
#include <stdarg.h>
|
||||
|
@ -25,9 +25,8 @@
|
||||
|
||||
#include "Common.h"
|
||||
|
||||
#include <Windows.h>
|
||||
#include <eaphostpeerconfigapis.h>
|
||||
#include <eaptypes.h> // Must include after <Windows.h>
|
||||
#include <eaptypes.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
@ -24,8 +24,6 @@
|
||||
|
||||
#include "Common.h"
|
||||
|
||||
#include <Windows.h>
|
||||
|
||||
namespace winstd
|
||||
{
|
||||
template<class T> class gdi_handle;
|
||||
|
@ -25,8 +25,6 @@
|
||||
|
||||
#include "Common.h"
|
||||
|
||||
#include <Windows.h>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user