diff options
author | unknown <ramil@mysql.com> | 2005-07-06 13:51:53 +0500 |
---|---|---|
committer | unknown <ramil@mysql.com> | 2005-07-06 13:51:53 +0500 |
commit | 502aa66c5c176341def1723c8ef24c3be78e8df1 (patch) | |
tree | 1791b37d1b01c3f001294542dc5a3f42c8521559 /include | |
parent | 7dbf02354a83f16f58bb5396da255f67f0a99696 (diff) | |
download | mariadb-git-502aa66c5c176341def1723c8ef24c3be78e8df1.tar.gz |
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
Diffstat (limited to 'include')
-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 */ |