diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-02 10:43:46 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-02 10:43:46 +0000 |
commit | 9d9bf40a2866926d4bf58bcddaee8f8a0bd3dcae (patch) | |
tree | 338e71ab2ffaff127ab1f5cb3c51dba3bfb8a4fa /sca-cpp/trunk/kernel | |
parent | 3c55d4251e24be7615327926966bd930212166b7 (diff) |
Fixed build error with --enable-threads option.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@895170 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/kernel')
-rw-r--r-- | sca-cpp/trunk/kernel/gc.hpp | 4 | ||||
-rw-r--r-- | sca-cpp/trunk/kernel/parallel.hpp | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sca-cpp/trunk/kernel/gc.hpp b/sca-cpp/trunk/kernel/gc.hpp index 3d20245c69..cc347a6da4 100644 --- a/sca-cpp/trunk/kernel/gc.hpp +++ b/sca-cpp/trunk/kernel/gc.hpp @@ -225,7 +225,7 @@ template<typename T> T* gc_new() { template<typename T> apr_status_t gc_pool_acleanup(void* v) { int* m = static_cast<int*>(v); int n = *m; - T* t = static_cast<T*>(m + 1); + T* t = (T*)(m + 1); for (int i = 0; i < n; i++, t++) t->~T(); return APR_SUCCESS; @@ -235,7 +235,7 @@ template<typename T> T* gc_anew(apr_pool_t* p, int n) { int* m = static_cast<int*>(apr_palloc(p, sizeof(int) + sizeof(T[n]))); *m = n; apr_pool_cleanup_register(p, m, gc_pool_acleanup<T>, apr_pool_cleanup_null) ; - return static_cast<T*>(m + 1); + return (T*)(m + 1); } template<typename T> T* gc_anew(int n) { diff --git a/sca-cpp/trunk/kernel/parallel.hpp b/sca-cpp/trunk/kernel/parallel.hpp index 33cb735b84..30697004f2 100644 --- a/sca-cpp/trunk/kernel/parallel.hpp +++ b/sca-cpp/trunk/kernel/parallel.hpp @@ -33,6 +33,7 @@ #endif #include "function.hpp" +#include "list.hpp" namespace tuscany { |