From: Mikko Rasa Date: Sun, 11 Dec 2022 09:19:31 +0000 (+0200) Subject: Add missing includes for Windows platform X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=cbe2cb6c2ea41b3e264ec9e3c4978483c5758962;p=libs%2Fcore.git Add missing includes for Windows platform --- diff --git a/source/fs/windows/filemonitor.cpp b/source/fs/windows/filemonitor.cpp index da0bca3..63336e3 100644 --- a/source/fs/windows/filemonitor.cpp +++ b/source/fs/windows/filemonitor.cpp @@ -1,3 +1,4 @@ +#include #include "filemonitor.h" #include "filemonitor_platform.h" diff --git a/source/fs/windows/utils.cpp b/source/fs/windows/utils.cpp index 30a8943..f38d192 100644 --- a/source/fs/windows/utils.cpp +++ b/source/fs/windows/utils.cpp @@ -1,4 +1,5 @@ #include +#include #include #include "dir.h" #include "utils.h" diff --git a/source/io/poll.cpp b/source/io/poll.cpp index b23becd..683eabe 100644 --- a/source/io/poll.cpp +++ b/source/io/poll.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include "eventobject.h" #include "poll.h" diff --git a/source/io/windows/console.cpp b/source/io/windows/console.cpp index 5d68c23..4f78487 100644 --- a/source/io/windows/console.cpp +++ b/source/io/windows/console.cpp @@ -1,3 +1,4 @@ +#include #include #include "console.h" #include "handle_private.h" @@ -13,7 +14,7 @@ DWORD stream_to_sys(Msp::IO::Console::Stream stream) case Msp::IO::Console::CIN: return STD_INPUT_HANDLE; case Msp::IO::Console::COUT: return STD_OUTPUT_HANDLE; case Msp::IO::Console::CERR: return STD_ERROR_HANDLE; - default: throw internal_error("stream_to_sys"); + default: throw Msp::internal_error("stream_to_sys"); } } diff --git a/source/io/windows/poll.cpp b/source/io/windows/poll.cpp index 0d644cd..cbd92fd 100644 --- a/source/io/windows/poll.cpp +++ b/source/io/windows/poll.cpp @@ -1,3 +1,4 @@ +#include #include #include "eventobject.h" #include "handle.h"