diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2019-11-09 19:51:23 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2019-11-09 19:51:23 +0000 |
commit | b6872a41b27413cccf5e1e7063f2054e6c6230b0 (patch) | |
tree | b7e792641ef8172861354f727068d9440703ec91 /print/scribus-devel | |
parent | 132606a4a983b8528bad226f9a44864553685744 (diff) | |
download | ports-b6872a41b27413cccf5e1e7063f2054e6c6230b0.tar.gz ports-b6872a41b27413cccf5e1e7063f2054e6c6230b0.zip |
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
Notes
Notes:
svn path=/head/; revision=517142
Diffstat (limited to 'print/scribus-devel')
-rw-r--r-- | print/scribus-devel/files/patch-scribus_third__party_lib2geom_isnan.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/print/scribus-devel/files/patch-scribus_third__party_lib2geom_isnan.h b/print/scribus-devel/files/patch-scribus_third__party_lib2geom_isnan.h new file mode 100644 index 000000000000..c6951a30d1da --- /dev/null +++ b/print/scribus-devel/files/patch-scribus_third__party_lib2geom_isnan.h @@ -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 |