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

View file

@ -91,6 +91,11 @@ (define-public synfig
(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++.