Make snmalloc build on Windows with Clang
Fixes a few places where Clang complains about Windows specific code, and also uses macros supported by Clang on Windows. A few places separating platform and compiler specific code, as MSVC and WIN32 were used interchangably previously.
This commit is contained in:
committed by
Matthew Parkinson
parent
eaeb2aa53d
commit
0affc069cf
@@ -18,8 +18,8 @@ namespace snmalloc
|
||||
using alloc_id_t = size_t;
|
||||
union
|
||||
{
|
||||
std::atomic<Remote*> next;
|
||||
Remote* non_atomic_next;
|
||||
std::atomic<Remote*> next = nullptr;
|
||||
};
|
||||
|
||||
alloc_id_t allocator_id;
|
||||
|
||||
Reference in New Issue
Block a user