diff --git a/modules/juce_core/maths/juce_MathsFunctions.h b/modules/juce_core/maths/juce_MathsFunctions.h index aecfbb54b2..7361ea71f0 100644 --- a/modules/juce_core/maths/juce_MathsFunctions.h +++ b/modules/juce_core/maths/juce_MathsFunctions.h @@ -343,12 +343,19 @@ template struct MathConstants { /** A predefined value for Pi */ - static constexpr FloatType pi = static_cast (3.141592653589793238L); + static const FloatType pi; /** A predfined value for Euler's number */ - static constexpr FloatType euler = static_cast (2.71828182845904523536L); + static const FloatType euler; }; +template +const FloatType MathConstants::pi = static_cast (3.141592653589793238L); + +template +const FloatType MathConstants::euler = static_cast (2.71828182845904523536L); + + /** A predefined value for Pi, at double-precision. @see float_Pi */