From 502aa66c5c176341def1723c8ef24c3be78e8df1 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 6 Jul 2005 13:51:53 +0500 Subject: a fix (bug #11544: Use of missing rint() function on QNX). include/my_global.h: a fix (bug #11544: Use of missing rint() function on QNX). We have to explicitly specify std:: namespace to use rint() and isnan() functions in C++ scope on QNX due to an error in the /usr/include/math.h --- include/my_global.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/my_global.h b/include/my_global.h index 9b53be66db0..f2fa54f3e4a 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -318,6 +318,11 @@ C_MODE_END #undef HAVE_FINITE #undef LONGLONG_MIN /* These get wrongly defined in QNX 6.2 */ #undef LONGLONG_MAX /* standard system library 'limits.h' */ +#ifdef __cplusplus +#define HAVE_RINT /* rint() and isnan() functions are not */ +#define rint(a) std::rint(a) /* visible in C++ scope due to an error */ +#define isnan(a) std::isnan(a) /* in the usr/include/math.h on QNX */ +#endif #endif /* We can not live without the following defines */ -- cgit v1.2.1