libopenshot-audio: fix gcc6 build

This commit is contained in:
Juergen Buchmueller 2016-12-12 14:40:29 +01:00
parent 2a7aee8c87
commit a2cac698ef
2 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,23 @@
Fix for gcc6 which does not have std::isfinite() but suggests
to use std::finite() instead.
--- JuceLibraryCode/modules/juce_core/maths/juce_MathsFunctions.h 2016-08-30 06:24:27.000000000 +0200
+++ JuceLibraryCode/modules/juce_core/maths/juce_MathsFunctions.h 2016-12-12 14:33:29.170005576 +0100
@@ -381,7 +381,7 @@
#if JUCE_WINDOWS && !JUCE_MINGW
return _finite (value) != 0;
#else
- return std::isfinite (value);
+ return finite (value);
#endif
}
@@ -391,7 +391,7 @@
#if JUCE_WINDOWS && !JUCE_MINGW
return _finite (value) != 0;
#else
- return std::isfinite (value);
+ return finite (value);
#endif
}

View file

@ -1,7 +1,7 @@
# Template file for 'libopenshot-audio'
pkgname=libopenshot-audio
version=0.1.2
revision=1
revision=2
build_style=cmake
only_for_archs="x86_64 i686"
hostmakedepends="doxygen"