gnu: synfig: Fix isnan error.

* gnu/packages/animation.scm (synfig)[arguments]: Add build phase to
replace "::isnan" with "std::isnan".
This commit is contained in:
Ricardo Wurmus 2016-09-23 07:40:39 +02:00
parent 56f33f3fd5
commit 5989d4eaac
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 5 additions and 0 deletions

View File

@ -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++.