summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 4b2e27aa3f6..aed4ee4fa01 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -297,6 +297,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 */