From 9d9bf40a2866926d4bf58bcddaee8f8a0bd3dcae Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Sat, 2 Jan 2010 10:43:46 +0000 Subject: Fixed build error with --enable-threads option. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@895170 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/kernel/gc.hpp | 4 ++-- sca-cpp/trunk/kernel/parallel.hpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'sca-cpp/trunk') 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 T* gc_new() { template apr_status_t gc_pool_acleanup(void* v) { int* m = static_cast(v); int n = *m; - T* t = static_cast(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 T* gc_anew(apr_pool_t* p, int n) { int* m = static_cast(apr_palloc(p, sizeof(int) + sizeof(T[n]))); *m = n; apr_pool_cleanup_register(p, m, gc_pool_acleanup, apr_pool_cleanup_null) ; - return static_cast(m + 1); + return (T*)(m + 1); } template 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 { -- cgit v1.2.3