summaryrefslogtreecommitdiff
path: root/include/my_global.h
diff options
context:
space:
mode:
authorramil@mysql.com <>2005-07-06 13:51:53 +0500
committerramil@mysql.com <>2005-07-06 13:51:53 +0500
commitf82420356fb542ec82e645396f94c1301a4a1be1 (patch)
tree1791b37d1b01c3f001294542dc5a3f42c8521559 /include/my_global.h
parentb6d3eec4f8fc99c562b2eda7f22275258a52e506 (diff)
downloadmariadb-git-f82420356fb542ec82e645396f94c1301a4a1be1.tar.gz
a fix (bug #11544: Use of missing rint() function on QNX).
Diffstat (limited to 'include/my_global.h')
-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 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 */