updated build system

This commit is contained in:
2024-10-18 11:46:59 -05:00
parent c216df9b73
commit 09cb5d8f19
14 changed files with 68 additions and 95 deletions

View File

@@ -20,6 +20,7 @@
SOFTWARE.
*/
#if defined(_WIN32)
#include "utils/windows.hpp"
#include "utils/com_init_wrapper.hpp"
@@ -27,7 +28,7 @@
namespace repertory::utils {
void create_console() {
if (AllocConsole() == 0) {
if (::AllocConsole() == 0) {
return;
}
@@ -56,7 +57,7 @@ void create_console() {
}
void free_console() {
FreeConsole();
::FreeConsole();
}
auto get_last_error_code() -> DWORD { return ::GetLastError(); }