Compatibility fixes.

This commit is contained in:
David Given
2024-01-20 23:05:42 +01:00
parent f187846bf3
commit 0beac3c48f
2 changed files with 5 additions and 3 deletions

View File

@@ -20,7 +20,10 @@
#if defined(_WIN32) || defined(__WIN32__)
#include <direct.h>
#define mkdir(A, B) _mkdir(A)
static inline int mkdir(const char* pathname, mode_t mode)
{
return _mkdir(pathname);
}
#endif
template <class T>

View File

@@ -81,8 +81,7 @@ QFuture<void> safeRunOnWorkerThread(std::function<void()> callback)
}
catch (...)
{
std::exception_ptr p = std::current_exception();
log("Fatal error: {}", p.__cxa_exception_type()->name());
log("Uncaught exception!");
}
});
}