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