From fcbdafeae2cbad2c44b24ad11a3af2e2f7cc1d26 Mon Sep 17 00:00:00 2001 From: aiekick Date: Sun, 7 Jan 2024 21:22:02 +0100 Subject: [PATCH] [FIX] : fix compilation on Osx --- main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index d2fbe4c..a9f4691 100644 --- a/main.cpp +++ b/main.cpp @@ -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 -#endif // __WIN32__ +#include +#endif // __WIN32__ // About Desktop OpenGL function loaders: // Modern desktop OpenGL doesn't have a standard portable header file to load OpenGL function pointers. @@ -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); }