mirror of
https://git.freebsd.org/ports.git
synced 2025-05-29 01:16:28 -04:00
The fix for clang in files/patch-src_avtk_avtk_picojson.hxx breaks GCC. Have two versions for two compilers. Fix altivec in src/avtk/libs/pffft.cxx and add -maltivec to CXXFLAGS on powerpc64. Also use new compilers. PR: 239518 Approved by: yuri (maintainer), tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D21141
15 lines
455 B
C++
15 lines
455 B
C++
--- src/avtk/avtk/picojson.hxx.orig 2018-02-25 11:56:24 UTC
|
|
+++ src/avtk/avtk/picojson.hxx
|
|
@@ -204,7 +204,11 @@ inline value::value(double n) : type_(number_type)
|
|
#ifdef _MSC_VER
|
|
! _finite(n)
|
|
#elif __cplusplus>=201103L || !(defined(isnan) && defined(isinf))
|
|
- std::isnan(n) || std::isinf(n)
|
|
+#ifdef __GNUC__
|
|
+ std::isnan(n) || std::isinf(n)
|
|
+#else
|
|
+ isnanf(n) || isinf(n)
|
|
+#endif
|
|
#else
|
|
isnan(n) || isinf(n)
|
|
#endif
|