DPF

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

commit 1f3fb01339a80c9dbfaa642c0c58121a57d923dc
parent 18fa6249d85d7cc81762f2b83c433ee6a7e193bb
Author: falkTX <falktx@falktx.com>
Date:   Thu,  2 Jun 2022 01:41:27 +0100

Make sure to always include+build the correct file browser file

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

Diffstat:
Mdgl/src/pugl.cpp | 11+++++------
Mdistrho/DistrhoUI_macOS.mm | 6++++--
Mdistrho/src/DistrhoPluginChecks.h | 2+-
Mdistrho/src/DistrhoUI.cpp | 12+++++++++++-
4 files changed, 21 insertions(+), 10 deletions(-)

diff --git a/dgl/src/pugl.cpp b/dgl/src/pugl.cpp @@ -102,12 +102,11 @@ #ifndef DGL_FILE_BROWSER_DISABLED # define FILE_BROWSER_DIALOG_DGL_NAMESPACE -# include "../FileBrowserDialog.hpp" -# ifdef DISTRHO_OS_MAC -# import "../../distrho/extra/FileBrowserDialogImpl.cpp" -# else -# include "../../distrho/extra/FileBrowserDialogImpl.cpp" -# endif +# define DGL_FILE_BROWSER_DIALOG_HPP_INCLUDED +START_NAMESPACE_DGL +# include "../../distrho/extra/FileBrowserDialogImpl.hpp" +END_NAMESPACE_DGL +# include "../../distrho/extra/FileBrowserDialogImpl.cpp" #endif #ifndef DISTRHO_OS_MAC diff --git a/distrho/DistrhoUI_macOS.mm b/distrho/DistrhoUI_macOS.mm @@ -27,10 +27,12 @@ // A few utils declared in DistrhoUI.cpp but defined here because they uses Obj-C #if DISTRHO_UI_FILE_BROWSER +# define DISTRHO_FILE_BROWSER_DIALOG_HPP_INCLUDED # define FILE_BROWSER_DIALOG_DISTRHO_NAMESPACE -# include "extra/FileBrowserDialog.hpp" +START_NAMESPACE_DISTRHO +# include "extra/FileBrowserDialogImpl.hpp" +END_NAMESPACE_DISTRHO # import "extra/FileBrowserDialogImpl.cpp" -# undef FILE_BROWSER_DIALOG_DISTRHO_NAMESPACE #endif #if DISTRHO_PLUGIN_HAS_EXTERNAL_UI diff --git a/distrho/src/DistrhoPluginChecks.h b/distrho/src/DistrhoPluginChecks.h @@ -1,6 +1,6 @@ /* * DISTRHO Plugin Framework (DPF) - * Copyright (C) 2012-2019 Filipe Coelho <falktx@falktx.com> + * Copyright (C) 2012-2022 Filipe Coelho <falktx@falktx.com> * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this diff --git a/distrho/src/DistrhoUI.cpp b/distrho/src/DistrhoUI.cpp @@ -17,6 +17,12 @@ #include "src/DistrhoPluginChecks.h" #include "src/DistrhoDefines.h" +#ifdef DISTRHO_PROPER_CPP11_SUPPORT +# include <cstdint> +#else +# include <stdint.h> +#endif + #if DISTRHO_UI_FILE_BROWSER && !defined(DISTRHO_OS_MAC) # define DISTRHO_PUGL_NAMESPACE_MACRO_HELPER(NS, SEP, FUNCTION) NS ## SEP ## FUNCTION # define DISTRHO_PUGL_NAMESPACE_MACRO(NS, FUNCTION) DISTRHO_PUGL_NAMESPACE_MACRO_HELPER(NS, _, FUNCTION) @@ -35,8 +41,12 @@ # define x_fib_save_recent DISTRHO_PUGL_NAMESPACE_MACRO(plugin, x_fib_save_recent) # define x_fib_show DISTRHO_PUGL_NAMESPACE_MACRO(plugin, x_fib_show) # define x_fib_status DISTRHO_PUGL_NAMESPACE_MACRO(plugin, x_fib_status) +# define DISTRHO_FILE_BROWSER_DIALOG_HPP_INCLUDED # define FILE_BROWSER_DIALOG_DISTRHO_NAMESPACE -# include "../extra/FileBrowserDialog.hpp" +START_NAMESPACE_DISTRHO +# include "../extra/FileBrowserDialogImpl.hpp" +END_NAMESPACE_DISTRHO +# include "../extra/FileBrowserDialogImpl.hpp" # include "../extra/FileBrowserDialogImpl.cpp" #endif