store InvalidationRecord in a Connection object and ref/unref it as appropriate
[ardour.git] / libs / pbd / tlsf.cc
index 13709ecbfb2cecace4f1ef9aaef073c2395639ea..40c5864c418d2e3f19f49aac91e8db0783879e14 100644 (file)
@@ -56,6 +56,7 @@
 #endif
 
 #include <assert.h>
+#include <stdlib.h>
 #include <string.h>
 
 #ifndef TLSF_STATISTIC
@@ -392,7 +393,10 @@ PBD::TLSF::TLSF (std::string name, size_t mem_pool_size)
 
        assert (mem_pool);
        assert (mem_pool_size >= sizeof(tlsf_t) + BHDR_OVERHEAD * 8);
+
+#ifndef __MINGW64__ // cast fails
        assert (0 == (((unsigned long)mem_pool) & PTR_MASK));
+#endif
 
 #ifndef PLATFORM_WINDOWS
        memset (mem_pool, 0, mem_pool_size); // make resident