Fix QNX warning

include/my_global.h:
  Avoid warnings on QNX, only define HAVE_RINT if not found by configure
This commit is contained in:
unknown 2005-09-14 08:33:00 +02:00
parent 20c8bfe7fa
commit a8c1ea9731

View File

@ -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