summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorramil@mysql.com <>2005-07-06 14:01:30 +0500
committerramil@mysql.com <>2005-07-06 14:01:30 +0500
commitfe09e62d36311562b90ee82b9d1a730881a2e9b6 (patch)
treeac896caef8980bfb99fca40602d017918053b23f /include
parentf07ac780f89bf04ce84c9bc45e5fbe1cbd5edb46 (diff)
parentf82420356fb542ec82e645396f94c1301a4a1be1 (diff)
downloadmariadb-git-fe09e62d36311562b90ee82b9d1a730881a2e9b6.tar.gz
Merge mysql.com:/usr/home/ram/work/mysql-4.1
into mysql.com:/usr/home/ram/work/mysql-5.0
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 22ec6dfffd3..ec4c52b6ee4 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -339,6 +339,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 */