summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormsvensson@neptunus.(none) <>2005-09-14 08:33:00 +0200
committermsvensson@neptunus.(none) <>2005-09-14 08:33:00 +0200
commit7fb9d5aaa013163912b256ee53686269d1a40bd2 (patch)
treea6ba73917494d123a9625878e1d7d9b8fd4f8804 /include
parent9a64991030797aeda4c61aeae77a6e0fa28a8ff6 (diff)
downloadmariadb-git-7fb9d5aaa013163912b256ee53686269d1a40bd2.tar.gz
Fix QNX warning
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/my_global.h b/include/my_global.h
index ce2cfbeb72a..5bfcef2820f 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -344,7 +344,9 @@ extern "C" int madvise(void *addr, size_t len, int behav);
#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 */
+#ifndef HAVE_RINT
+#define HAVE_RINT
+#endif /* 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