From 96a9bcf3a1246bb1e1fabc7a990d374e6959eae3 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 17 Sep 2020 16:20:05 -0400 Subject: [PATCH] move deprecated glibc extensions to the bottom --- h_malloc.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/h_malloc.c b/h_malloc.c index b8b7c12..7e1306f 100644 --- a/h_malloc.c +++ b/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