summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <kent@mysql.com>2005-09-02 11:11:29 +0200
committerunknown <kent@mysql.com>2005-09-02 11:11:29 +0200
commitc56b652671ad98eec9e5341fe265edfd3fad7544 (patch)
tree312b9678dcb6b7d9d557cd13327015010e72d878
parentb8c37fdafdda828f255f7820c5db17c15394fa96 (diff)
downloadmariadb-git-c56b652671ad98eec9e5341fe265edfd3fad7544.tar.gz
my_global.h:mysql-4.0.26
Back port of QNX work around for rint() include/my_global.h: Back port of QNX work around for rint()
-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 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 */