diff options
author | aleexfi <aleexfi@yandex-team.com> | 2022-12-06 14:42:51 +0300 |
---|---|---|
committer | aleexfi <aleexfi@yandex-team.com> | 2022-12-06 14:42:51 +0300 |
commit | e32ded7b7757286f092548b2731c598704928c62 (patch) | |
tree | d281a7438c386f9dc35ca7dd31162c18e71447cf /library/cpp/yt/malloc/malloc.cpp | |
parent | c98004737b7c07ca8fc7d840690738cd1d405ed2 (diff) | |
download | ydb-e32ded7b7757286f092548b2731c598704928c62.tar.gz |
Fix nallocx redefinition when using lf allocator on windows
Diffstat (limited to 'library/cpp/yt/malloc/malloc.cpp')
-rw-r--r-- | library/cpp/yt/malloc/malloc.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/library/cpp/yt/malloc/malloc.cpp b/library/cpp/yt/malloc/malloc.cpp index 9a055eaaa0..abb04e60f9 100644 --- a/library/cpp/yt/malloc/malloc.cpp +++ b/library/cpp/yt/malloc/malloc.cpp @@ -1,24 +1,11 @@ #include "malloc.h" -#include <util/system/compiler.h> #include <util/system/platform.h> #include <stdlib.h> //////////////////////////////////////////////////////////////////////////////// -#ifndef _win_ -Y_WEAK extern "C" size_t nallocx(size_t size, int /*flags*/) noexcept -{ - return size; -} - -Y_WEAK extern "C" size_t malloc_usable_size(void* /*ptr*/) noexcept -{ - return 0; -} -#endif - void* aligned_malloc(size_t size, size_t alignment) { #if defined(_win_) |