]> www.ginac.de Git - cln.git/blobdiff - src/base/hash/cl_rcpointer_hashweak_rcpointer.cc
Cater to the fact that g++ 4.3 will use a different naming for
[cln.git] / src / base / hash / cl_rcpointer_hashweak_rcpointer.cc
index 8967994cbf374c59f345bf597de5e6ac29c1a1dc..c711d7edca1856c7ac80500ffad461ed1ea98b20 100644 (file)
@@ -11,6 +11,8 @@
 
 #include "cl_hash1weak.h"
 
+namespace cln {
+
 static void cl_weak_hashtable_from_rcpointer_to_rcpointer_destructor (cl_heap* pointer)
 {
 #if (defined(__mips__) || defined(__mips64__)) && !defined(__GNUC__) // workaround SGI CC bug
@@ -27,7 +29,7 @@ cl_class cl_class_weak_hashtable_from_rcpointer_to_rcpointer = {
 
 // These are not inline, because they tend to duplicate a lot of template code.
 
-cl_wht_from_rcpointer_to_rcpointer::cl_wht_from_rcpointer_to_rcpointer (cl_boolean (*maygc_htentry) (const cl_htentry_from_rcpointer_to_rcpointer&))
+cl_wht_from_rcpointer_to_rcpointer::cl_wht_from_rcpointer_to_rcpointer (bool (*maygc_htentry) (const cl_htentry_from_rcpointer_to_rcpointer&))
 {
        var cl_heap_weak_hashtable_from_rcpointer_to_rcpointer* ht = new cl_heap_weak_hashtable_from_rcpointer_to_rcpointer (maygc_htentry);
        ht->refcount = 1;
@@ -45,3 +47,4 @@ void cl_wht_from_rcpointer_to_rcpointer::put (const cl_rcpointer& x, const cl_rc
        ((cl_heap_weak_hashtable_from_rcpointer_to_rcpointer*)pointer)->put(x,y);
 }
 
+}  // namespace cln