Skip to content

Commit

Permalink
make heap_main mi_decl_hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
daanx committed Feb 11, 2025
1 parent 156687a commit 1d3d193
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const mi_page_t _mi_page_empty = {
// may lead to allocation itself on some platforms)
// --------------------------------------------------------

mi_decl_cache_align const mi_heap_t _mi_heap_empty = {
mi_decl_hidden mi_decl_cache_align const mi_heap_t _mi_heap_empty = {
NULL,
MI_ATOMIC_VAR_INIT(NULL),
0, // tid
Expand Down Expand Up @@ -127,7 +127,7 @@ mi_threadid_t _mi_thread_id(void) mi_attr_noexcept {
// the thread-local default heap for allocation
mi_decl_thread mi_heap_t* _mi_heap_default = (mi_heap_t*)&_mi_heap_empty;

extern mi_heap_t _mi_heap_main;
extern mi_decl_hidden mi_heap_t _mi_heap_main;

static mi_decl_cache_align mi_subproc_t mi_subproc_default;

Expand Down

0 comments on commit 1d3d193

Please sign in to comment.