thread/Thread, fs: add missing WIN32 includes

This commit is contained in:
Max Kellermann 2022-11-28 21:55:02 +01:00
parent 25da798e7a
commit 124e75c286
3 changed files with 14 additions and 0 deletions

View File

@ -22,6 +22,8 @@
#ifdef _WIN32
#include <handleapi.h> // for INVALID_HANDLE_VALUE
DirectoryReader::DirectoryReader(Path dir)
:handle(FindFirstFile(MakeWildcardPath(dir.c_str()), &data))
{

View File

@ -22,6 +22,12 @@
#include "Limits.hxx"
#include "system/Error.hxx"
#ifdef _WIN32
#include <handleapi.h> // for CloseHandle()
#include <windef.h> // for HWND (needed by winbase.h)
#include <winbase.h> // for MoveFileEx()
#endif
#include <cerrno>
#include <fcntl.h>

View File

@ -24,6 +24,12 @@
#include "java/Global.hxx"
#endif
#ifdef _WIN32
#include <synchapi.h> // for WaitForSingleObject()
#include <windef.h> // for HWND (needed by winbase.h)
#include <winbase.h> // for INFINITE
#endif
void
Thread::Start()
{