move deprecated glibc extensions to the bottom

This commit is contained in:
Daniel Micay 2020-09-17 16:20:05 -04:00
parent 41fb89517a
commit 96a9bcf3a1

View File

@ -1848,16 +1848,6 @@ EXPORT int h_malloc_info(int options, UNUSED FILE *fp) {
} }
#endif #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__ #ifdef __ANDROID__
EXPORT size_t h_mallinfo_narenas(void) { EXPORT size_t h_mallinfo_narenas(void) {
// Consider region allocator to be an arena with index N_ARENA. // Consider region allocator to be an arena with index N_ARENA.
@ -1949,3 +1939,13 @@ COLD EXPORT void h_malloc_enable(void) {
full_unlock(); full_unlock();
} }
#endif #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