From a8c1ea973191a6735bfb1ecd78681448d28b8ee9 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 14 Sep 2005 08:33:00 +0200 Subject: [PATCH] Fix QNX warning include/my_global.h: Avoid warnings on QNX, only define HAVE_RINT if not found by configure --- include/my_global.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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