You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2008/04/18 18:03:54 UTC

svn commit: r649584 - in /activemq/activemq-cpp/decaf/trunk/src/main/decaf: internal/AprPool.h lang/Long.cpp

Author: tabish
Date: Fri Apr 18 09:03:45 2008
New Revision: 649584

URL: http://svn.apache.org/viewvc?rev=649584&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQCPP-103

Flushing out decaf build issues on windows.

Modified:
    activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/AprPool.h
    activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Long.cpp

Modified: activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/AprPool.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/AprPool.h?rev=649584&r1=649583&r2=649584&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/AprPool.h (original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/internal/AprPool.h Fri Apr 18 09:03:45 2008
@@ -31,7 +31,7 @@
      * member for use in static methods where apr function calls that need a pool
      * are made.
      */
-    class AprPool {
+    class DECAF_API AprPool {
     private:
 
         /**

Modified: activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Long.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Long.cpp?rev=649584&r1=649583&r2=649584&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Long.cpp (original)
+++ activemq/activemq-cpp/decaf/trunk/src/main/decaf/lang/Long.cpp Fri Apr 18 09:03:45 2008
@@ -141,7 +141,7 @@
     }
 
     unsigned long long uvalue = (unsigned long long)value;
-    return ( uvalue & (-uvalue) );
+    return ( uvalue & (-1 * uvalue) );
 }
 
 ////////////////////////////////////////////////////////////////////////////////
@@ -169,7 +169,7 @@
     }
 
     unsigned long long uvalue = (unsigned long long)value;
-    return Long::bitCount( (uvalue & -uvalue) - 1 );
+    return Long::bitCount( (uvalue & (-1 * uvalue)) - 1 );
 }
 
 ////////////////////////////////////////////////////////////////////////////////