List:Internals« Previous MessageNext Message »
From:kent Date:September 2 2005 9:11am
Subject:bk commit into 4.0 tree (kent:1.2144)
View as plain text  
Below is the list of changes that have just been committed into a local
4.0 repository of kent. When kent does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2144 05/09/02 11:11:29 kent@stripped +1 -0
  my_global.h:
    Back port of QNX work around for rint()

  include/my_global.h
    1.73 05/09/02 11:10:18 kent@stripped +5 -0
    Back port of QNX work around for rint()

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	kent
# Host:	dialup-d2i-62-65-90-52.home.se
# Root:	/Users/kent/mysql/bk/mysql-4.0-release

--- 1.72/include/my_global.h	2005-06-08 18:07:23 +02:00
+++ 1.73/include/my_global.h	2005-09-02 11:10:18 +02:00
@@ -297,6 +297,11 @@
 #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 */
Thread
bk commit into 4.0 tree (kent:1.2144)kent2 Sep