Commit 502aa66c authored by unknown's avatar unknown
Browse files

a fix (bug #11544: Use of missing rint() function on QNX).


include/my_global.h:
  a fix (bug #11544: Use of missing rint() function on QNX).
  We have to explicitly specify std:: namespace to use 
  rint() and isnan() functions in C++ scope on QNX due 
  to an error in the /usr/include/math.h
parent 7dbf0235
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -318,6 +318,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 */