diff --git a/simdb.hpp b/simdb.hpp index 418df26..3aa3261 100644 --- a/simdb.hpp +++ b/simdb.hpp @@ -221,8 +221,13 @@ #endif //#ifndef NDEBUG +#ifdef WINDOWS + __declspec(selectany) thread_local int __simdb_allocs = 0; + __declspec(selectany) thread_local int __simdb_deallocs = 0; +#elif thread_local int __simdb_allocs = 0; thread_local int __simdb_deallocs = 0; +#endif //#endif namespace { @@ -1344,7 +1349,7 @@ class CncrHsh } template - bool runMatch(const void *const key, u32 klen, u32 hash, FUNC f, T defaultRet = decltype(f(vi))() ) const + bool runMatch(const void *const key, u32 klen, u32 hash, FUNC f, T defaultRet = decltype(f(VerIdx()))() ) const { using namespace std;