diff options
author | unknown <kent@mysql.com> | 2005-09-02 11:11:29 +0200 |
---|---|---|
committer | unknown <kent@mysql.com> | 2005-09-02 11:11:29 +0200 |
commit | a46d6b0c0c05b5c6275abec1bd861105bd5b88f6 (patch) | |
tree | 312b9678dcb6b7d9d557cd13327015010e72d878 /include/my_global.h | |
parent | f9c76fa07e23435c53f196de1a17dfac925d705f (diff) | |
download | mariadb-git-a46d6b0c0c05b5c6275abec1bd861105bd5b88f6.tar.gz |
my_global.h:
Back port of QNX work around for rint()
include/my_global.h:
Back port of QNX work around for rint()
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 e2a97667a1f..483cd135d53 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 */ |