mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 12:56:28 -04:00
isnan() causes error with GCC, use std::isnan(). Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D22143
11 lines
442 B
C++
11 lines
442 B
C++
--- 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
|