未验证 提交 d9bf73f3 编写于 作者: O openharmony_ci 提交者: Gitee

!746 Revert unapproved changes of NDK API (mallinfo/mallinfo2)

Merge pull request !746 from sosnin-vladimir/revert_ndk_api_changes
...@@ -18,21 +18,31 @@ void *memalign(size_t, size_t); ...@@ -18,21 +18,31 @@ void *memalign(size_t, size_t);
size_t malloc_usable_size(void *); size_t malloc_usable_size(void *);
#define __MALLINFO_BODY \ struct mallinfo {
size_t arena; \ int arena;
size_t ordblks; \ int ordblks;
size_t smblks; \ int smblks;
size_t hblks; \ int hblks;
size_t hblkhd; \ int hblkhd;
size_t usmblks; \ int usmblks;
size_t fsmblks; \ int fsmblks;
size_t uordblks; \ int uordblks;
size_t fordblks; \ int fordblks;
int keepcost;
};
struct mallinfo2 {
size_t arena;
size_t ordblks;
size_t smblks;
size_t hblks;
size_t hblkhd;
size_t usmblks;
size_t fsmblks;
size_t uordblks;
size_t fordblks;
size_t keepcost; size_t keepcost;
};
struct mallinfo { __MALLINFO_BODY };
struct mallinfo2 { __MALLINFO_BODY };
#ifdef __cplusplus #ifdef __cplusplus
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册