mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Compatibility fixes.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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!");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user