DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 4608cb7fc6e7c0e280efcd29125e353278e3bae9
parent 13bfc5b5016f8cc80b43ca4d43bc390c3befc9d5
Author: falkTX <falktx@falktx.com>
Date:   Wed, 27 Feb 2019 13:50:24 +0100

Only use get_current_dir_name on Linux

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdgl/src/Window.cpp | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/dgl/src/Window.cpp b/dgl/src/Window.cpp @@ -1224,6 +1224,7 @@ bool Window::openFileBrowser(const FileBrowserOptions& options) String startDir(options.startDir); +# ifdef DISTRHO_OS_LINUX if (startDir.isEmpty()) { if (char* const dir_name = get_current_dir_name()) @@ -1232,6 +1233,7 @@ bool Window::openFileBrowser(const FileBrowserOptions& options) std::free(dir_name); } } +# endif DISTRHO_SAFE_ASSERT_RETURN(startDir.isNotEmpty(), false);