print/scribus-devel: fix build on GCC architectures

isnan() causes error with GCC, use std::isnan().

Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D22143
This commit is contained in:
Piotr Kubaj 2019-11-09 19:51:23 +00:00
parent 132606a4a9
commit b6872a41b2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=517142

View File

@ -0,0 +1,11 @@
--- scribus/third_party/lib2geom/isnan.h.orig 2019-09-19 12:41:56 UTC
+++ scribus/third_party/lib2geom/isnan.h
@@ -34,7 +34,7 @@
#elif defined(WIN32) || defined(_isnan)
# define is_nan(_a) (_isnan(_a)) /* Win32 definition */
#elif defined(isnan) || defined(__FreeBSD__)
-# define is_nan(_a) (isnan(_a)) /* GNU definition */
+# define is_nan(_a) (std::isnan(_a)) /* GNU definition */
#else
# define is_nan(_a) (std::isnan(_a))
#endif