|
@@ -35,10 +35,16 @@
|
|
|
#include <asio2/asio2.hpp>
|
|
|
//fmt
|
|
|
#include <fmt/format.h>
|
|
|
+//windows
|
|
|
+#ifdef WINDOWS_BUILD
|
|
|
+#include <Windows.h>
|
|
|
+#endif
|
|
|
|
|
|
-#ifndef SET_CURRENT_DIRECTORY
|
|
|
-#define SET_CURRENT_DIRECTORY robotics::v3::utils::set_current_directory(robotics::v3::utils::execute_file_path())
|
|
|
-#endif // SET_CURRENT_DIRECTORY
|
|
|
+#ifdef WINDOWS_BUILD
|
|
|
+#define SET_CONSOLE_UTF8 SetConsoleOutputCP(CP_UTF8)
|
|
|
+#elif LINUX_BUILD
|
|
|
+#define SET_CONSOLE_UTF8
|
|
|
+#endif
|
|
|
|
|
|
|
|
|
|