1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Squashed some deprecation warnings on the latest iOS and macOS versions

This commit is contained in:
ed 2020-05-04 09:59:23 +01:00
parent 946657d5c1
commit 5816958001
5 changed files with 34 additions and 3 deletions

View file

@ -16,6 +16,11 @@
==============================================================================
*/
#if (defined (__IPHONE_10_0) && __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_10_0)
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
#define JUCE_DEPRECATION_IGNORED 1
#endif
struct CameraDevice::Pimpl
{
using InternalOpenCameraResultCallback = std::function<void(const String& /*cameraId*/, const String& /*error*/)>;
@ -1324,3 +1329,7 @@ String CameraDevice::getFileExtension()
{
return ".mov";
}
#if JUCE_DEPRECATION_IGNORED
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
#endif