move deprecated glibc extensions to the bottom
This commit is contained in:
parent
41fb89517a
commit
96a9bcf3a1
20
h_malloc.c
20
h_malloc.c
@ -1848,16 +1848,6 @@ EXPORT int h_malloc_info(int options, UNUSED FILE *fp) {
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __GLIBC__
|
||||
COLD EXPORT void *h_malloc_get_state(void) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
COLD EXPORT int h_malloc_set_state(UNUSED void *state) {
|
||||
return -2;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __ANDROID__
|
||||
EXPORT size_t h_mallinfo_narenas(void) {
|
||||
// Consider region allocator to be an arena with index N_ARENA.
|
||||
@ -1949,3 +1939,13 @@ COLD EXPORT void h_malloc_enable(void) {
|
||||
full_unlock();
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __GLIBC__
|
||||
COLD EXPORT void *h_malloc_get_state(void) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
COLD EXPORT int h_malloc_set_state(UNUSED void *state) {
|
||||
return -2;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user