From 5989d4eaac8b1b98805d1e85df16f89690dc5b4e Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 23 Sep 2016 07:40:39 +0200 Subject: [PATCH] gnu: synfig: Fix isnan error. * gnu/packages/animation.scm (synfig)[arguments]: Add build phase to replace "::isnan" with "std::isnan". --- gnu/packages/animation.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnu/packages/animation.scm b/gnu/packages/animation.scm index 077657937d..8de1fbfaa8 100644 --- a/gnu/packages/animation.scm +++ b/gnu/packages/animation.scm @@ -91,6 +91,11 @@ C++ @dfn{Standard Template Library} (STL).") (substitute* "src/modules/mod_svg/svg_parser.cpp" (("xmlpp::Node::NodeList") "xmlpp::Node::const_NodeList")) #t)) + (add-after 'unpack 'fix-isnan-error + (lambda _ + (substitute* "src/synfig/time.cpp" + (("return !::isnan") "return !std::isnan")) + #t)) (add-before 'configure 'set-flags (lambda _ ;; Compile with C++11, required by libsigc++.