From 8b0354ff6965a91b3fe192ddbda41c46b06ef855 Mon Sep 17 00:00:00 2001 From: tpoole Date: Fri, 7 Apr 2017 08:20:46 +0100 Subject: [PATCH] Added precompiler sections to make NormalisableRange compatible with OS X 10.5 --- modules/juce_core/maths/juce_NormalisableRange.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/juce_core/maths/juce_NormalisableRange.h b/modules/juce_core/maths/juce_NormalisableRange.h index 8c5a4fc59f..341cd0b770 100644 --- a/modules/juce_core/maths/juce_NormalisableRange.h +++ b/modules/juce_core/maths/juce_NormalisableRange.h @@ -55,10 +55,12 @@ public: NormalisableRange (const NormalisableRange& other) noexcept : start (other.start), end (other.end), interval (other.interval), skew (other.skew), - symmetricSkew (other.symmetricSkew), - convertFrom0To1Function (other.convertFrom0To1Function), - convertTo0To1Function (other.convertTo0To1Function), - snapToLegalValueFunction (other.snapToLegalValueFunction) + symmetricSkew (other.symmetricSkew) + #if JUCE_COMPILER_SUPPORTS_LAMBDAS + , convertFrom0To1Function (other.convertFrom0To1Function) + , convertTo0To1Function (other.convertTo0To1Function) + , snapToLegalValueFunction (other.snapToLegalValueFunction) + #endif { checkInvariants(); } @@ -71,9 +73,11 @@ public: interval = other.interval; skew = other.skew; symmetricSkew = other.symmetricSkew; + #if JUCE_COMPILER_SUPPORTS_LAMBDAS convertFrom0To1Function = other.convertFrom0To1Function; convertTo0To1Function = other.convertTo0To1Function; snapToLegalValueFunction = other.snapToLegalValueFunction; + #endif checkInvariants();