aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/malloc/malloc.h
diff options
context:
space:
mode:
authorMaxim Yurchuk <maxim-yurchuk@ydb.tech>2024-10-18 20:31:38 +0300
committerGitHub <noreply@github.com>2024-10-18 20:31:38 +0300
commit2a74bac2d2d3bccb4e10120f1ead805640ec9dd0 (patch)
tree047e4818ced5aaf73f58517629e5260b5291f9f0 /library/cpp/yt/malloc/malloc.h
parent2d9656823e9521d8c29ea4c9a1d0eab78391abfc (diff)
parent3d834a1923bbf9403cd4a448e7f32b670aa4124f (diff)
downloadydb-2a74bac2d2d3bccb4e10120f1ead805640ec9dd0.tar.gz
Merge pull request #10502 from ydb-platform/mergelibs-241016-1210
Library import 241016-1210
Diffstat (limited to 'library/cpp/yt/malloc/malloc.h')
-rw-r--r--library/cpp/yt/malloc/malloc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/library/cpp/yt/malloc/malloc.h b/library/cpp/yt/malloc/malloc.h
index 2b3efbfd00..8e3f03ccb4 100644
--- a/library/cpp/yt/malloc/malloc.h
+++ b/library/cpp/yt/malloc/malloc.h
@@ -1,8 +1,13 @@
#include <cstddef>
+
////////////////////////////////////////////////////////////////////////////////
+#if defined(__ANDROID__)
+extern "C" size_t malloc_usable_size(const void* ptr);
+#else
extern "C" size_t malloc_usable_size(void* ptr) noexcept;
+#endif
extern "C" size_t nallocx(size_t size, int flags) noexcept;