Skip to content
Snippets Groups Projects

Feature/mac support

Merged Julius Nehring-Wirxel requested to merge feature/mac-support into develop
4 files
+ 30
6
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -51,10 +51,10 @@ struct FileLocation
const FileLocation getFileLocation(const std::string_view path)
{
const auto predict = [](char character) {
const auto predict = [](char character) -> bool {
#ifdef _WIN32
return character == _T('\\') || character == _T('/');
#elif __unix__
#elif __unix__ || __APPLE__
return character == '/';
#endif // __unix__
};
@@ -248,6 +248,8 @@ public:
GLOW_RUNTIME_ASSERT(winDirectory != INVALID_HANDLE_VALUE, "Failed to create Win32 directory handle", return nullptr);
return std::make_unique<Monitor>(path, winCloseEvent, winDirectory);
#elif defined __APPLE__
return {};
#endif
}
Loading