]> git.tdb.fi Git - libs/core.git/commitdiff
Add missing includes for Windows platform
authorMikko Rasa <tdb@tdb.fi>
Sun, 11 Dec 2022 09:19:31 +0000 (11:19 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 11 Dec 2022 09:19:31 +0000 (11:19 +0200)
source/fs/windows/filemonitor.cpp
source/fs/windows/utils.cpp
source/io/poll.cpp
source/io/windows/console.cpp
source/io/windows/poll.cpp

index da0bca3a65566df44e3256313f31ab9e7363ecf6..63336e3fa3782680357e342dddda7e47e13cdb6b 100644 (file)
@@ -1,3 +1,4 @@
+#include <msp/core/except.h>
 #include "filemonitor.h"
 #include "filemonitor_platform.h"
 
 #include "filemonitor.h"
 #include "filemonitor_platform.h"
 
index 30a894394a9f6b97b0c064db8a5c5774867a63a8..f38d1921146686f4f3db2296e9b37b905ca8d2aa 100644 (file)
@@ -1,4 +1,5 @@
 #include <windows.h>
 #include <windows.h>
+#include <msp/core/except.h>
 #include <msp/core/systemerror.h>
 #include "dir.h"
 #include "utils.h"
 #include <msp/core/systemerror.h>
 #include "dir.h"
 #include "utils.h"
index b23becdc0402710cae5d9978c8dca281e4ef1f5e..683eabe17a287c67f3ccab63925daf1770274c4c 100644 (file)
@@ -1,4 +1,4 @@
-#include <stdexcept>
+#include <msp/core/except.h>
 #include <msp/core/algorithm.h>
 #include "eventobject.h"
 #include "poll.h"
 #include <msp/core/algorithm.h>
 #include "eventobject.h"
 #include "poll.h"
index 5d68c23fe4dec484964ba4a5a1beee243bb294ae..4f78487856b996814531511d1e1f7aa872641af2 100644 (file)
@@ -1,3 +1,4 @@
+#include <msp/core/except.h>
 #include <msp/core/systemerror.h>
 #include "console.h"
 #include "handle_private.h"
 #include <msp/core/systemerror.h>
 #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;
        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");
        }
 }
 
        }
 }
 
index 0d644cd0a7cf6cfa3573df8444f465543a50f537..cbd92fd39678417c59375277c4ab0bd802606109 100644 (file)
@@ -1,3 +1,4 @@
+#include <msp/core/except.h>
 #include <msp/core/systemerror.h>
 #include "eventobject.h"
 #include "handle.h"
 #include <msp/core/systemerror.h>
 #include "eventobject.h"
 #include "handle.h"