Browse Source

FileChooser: Temporarily silence deprecation warnings on iOS

tags/2021-05-28
reuk 4 years ago
parent
commit
4fd3dfb51b
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      modules/juce_gui_basics/native/juce_ios_FileChooser.mm

+ 11
- 0
modules/juce_gui_basics/native/juce_ios_FileChooser.mm View File

@@ -26,6 +26,11 @@
namespace juce
{
#if ! (defined (__IPHONE_15_0) && __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_15_0)
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
#define JUCE_DEPRECATION_IGNORED 1
#endif
class FileChooser::Native : public FileChooser::Pimpl,
public Component,
private AsyncUpdater
@@ -378,4 +383,10 @@ FileChooser::Pimpl* FileChooser::showPlatformDialog (FileChooser& owner, int fla
return new FileChooser::Native (owner, flags);
}
#if JUCE_DEPRECATION_IGNORED
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
#endif
#undef JUCE_DEPRECATION_IGNORED
} // namespace juce

Loading…
Cancel
Save