mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-09 12:58:41 +03:00
fix C++ compilation with new atomics
This commit is contained in:
parent
2594b37c56
commit
50de0d2358
4 changed files with 23 additions and 12 deletions
|
@ -170,7 +170,7 @@ static void mi_out_stderr(const char* msg, void* arg) {
|
|||
// an output function is registered it is called immediately with
|
||||
// the output up to that point.
|
||||
#ifndef MI_MAX_DELAY_OUTPUT
|
||||
#define MI_MAX_DELAY_OUTPUT (32*1024)
|
||||
#define MI_MAX_DELAY_OUTPUT ((uintptr_t)(32*1024))
|
||||
#endif
|
||||
static char out_buf[MI_MAX_DELAY_OUTPUT+1];
|
||||
static _Atomic(uintptr_t) out_len;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue