Error: 'isfinite' was not declared in this scope


#1

I just pulled the latest JUCE tip and got errors related to "isfinite":

​​
     [exec] jni/../../../Source/../JuceLibraryCode/modules/juce_audio_basics/../../../../../modules/juce_audio_basics/../juce_core/maths/juce_MathsFunctions.h: In function 'bool juce::juce_isfinite(NumericType) [with NumericType = float]':

     [exec] jni/../../../Source/../JuceLibraryCode/modules/juce_audio_basics/../../../../../modules/juce_audio_basics/../juce_core/maths/juce_MathsFunctions.h:360:27: error: 'isfinite' was not declared in this scope

     [exec]      return isfinite (value);

I fixed on my system by removing the "isfinite" definition for Android, so it uses std::isfinite:

https://github.com/adamski/JUCE/commit/39736cc9f84bf5d37e7f4d7b1686125fcbbd64d5

The clue was here https://code.google.com/p/android/issues/detail?id=34793


#2

Thanks, will get this sorted out right away. Actually, I think it was always wrong, just never got used anywhere until now!