Skip to content

Commit

Permalink
Fix conflict with stdc++ operator delete[](void*, size_t) (#2877)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 authored Aug 24, 2024
1 parent daa4db6 commit 3378a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sming/Arch/Esp8266/Components/heap/alloc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void operator delete(void* ptr, size_t)
free(ptr);
}

void operator delete[](void* ptr, size_t)
void __attribute__((weak)) operator delete[](void* ptr, size_t)
{
free(ptr);
}

0 comments on commit 3378a0c

Please sign in to comment.