win32, ...: avoid including windows.h
Include the most specific header documented by MSDN instead.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
#include <windows.h>
|
||||
#include <fileapi.h>
|
||||
#include <tchar.h>
|
||||
|
||||
/**
|
||||
|
||||
@@ -42,7 +42,10 @@
|
||||
#include <cstdint>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#include <fileapi.h>
|
||||
#include <windef.h> // for HWND (needed by winbase.h)
|
||||
#include <handleapi.h> // for INVALID_HANDLE_VALUE
|
||||
#include <winbase.h> // for FILE_END
|
||||
#endif
|
||||
|
||||
#if defined(__linux__) && !defined(ANDROID)
|
||||
|
||||
@@ -35,7 +35,10 @@
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#include <fileapi.h>
|
||||
#include <handleapi.h> // for INVALID_HANDLE_VALUE
|
||||
#include <windef.h> // for HWND (needed by winbase.h)
|
||||
#include <winbase.h> // for FILE_CURRENT
|
||||
#else
|
||||
#include "io/UniqueFileDescriptor.hxx"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user