mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-24 07:53:41 +03:00
Merge remote-tracking branch 'Icantjuddle/fix_deprexated_mallinfo_call'
This commit is contained in:
commit
f7be47fb95
@ -1448,7 +1448,9 @@ const CommandDesc debug_cmd = {
|
||||
}
|
||||
write_to_debug_buffer({});
|
||||
write_to_debug_buffer(format(" Total: {}", total));
|
||||
#if defined(__GLIBC__) || defined(__CYGWIN__)
|
||||
#if defined(__GLIBC__) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 33))
|
||||
write_to_debug_buffer(format(" Malloced: {}", mallinfo2().uordblks));
|
||||
#else if defined(__GLIBC__) || defined(__CYGWIN__)
|
||||
write_to_debug_buffer(format(" Malloced: {}", mallinfo().uordblks));
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user