diff options
author | ramil@mysql.com <> | 2005-07-06 13:51:53 +0500 |
---|---|---|
committer | ramil@mysql.com <> | 2005-07-06 13:51:53 +0500 |
commit | f82420356fb542ec82e645396f94c1301a4a1be1 (patch) | |
tree | 1791b37d1b01c3f001294542dc5a3f42c8521559 /include/my_global.h | |
parent | b6d3eec4f8fc99c562b2eda7f22275258a52e506 (diff) | |
download | mariadb-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.h | 5 |
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 */ |