Skip to content

Commit

Permalink
Compatibility fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgiven committed Jan 20, 2024
1 parent f187846 commit 0beac3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion lib/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 1 addition & 2 deletions src/gui2/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
}
});
}
Expand Down

0 comments on commit 0beac3c

Please sign in to comment.