Skip to content

Commit

Permalink
[FIX] : fix compilation on Osx
Browse files Browse the repository at this point in the history
  • Loading branch information
aiekick committed Jan 7, 2024
1 parent fdca1a9 commit fcbdafe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@

#if defined(__WIN32__) || defined(WIN32) || defined(_WIN32) || defined(__WIN64__) || defined(WIN64) || defined(_WIN64) || defined(_MSC_VER)
#define stat _stat
#else
#else // UNIX
#include <sys/types.h>
#endif // __WIN32__
#include <sys/stat.h>
#endif // __WIN32__

// About Desktop OpenGL function loaders:
// Modern desktop OpenGL doesn't have a standard portable header file to load OpenGL function pointers.
Expand Down Expand Up @@ -177,7 +178,7 @@ class CustomDrawReadOnlyCheckBoxFileDialog : public ImGuiFileDialog {
void OpenDialog(const std::string& vKey,
const std::string& vTitle,
const char* vFilters,
const IGFD::FileDialogConfig& vConfig) {
const IGFD::FileDialogConfig& vConfig) override {
m_ReadOnly = false;
ImGuiFileDialog::OpenDialog(vKey, vTitle, vFilters, vConfig);
}
Expand Down

0 comments on commit fcbdafe

Please sign in to comment.