From 3378a0c20dc614d4515855e6ba556cacc1aa7c1d Mon Sep 17 00:00:00 2001 From: Mike Date: Sat, 24 Aug 2024 06:25:20 +0100 Subject: [PATCH] Fix conflict with stdc++ `operator delete[](void*, size_t)` (#2877) --- Sming/Arch/Esp8266/Components/heap/alloc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sming/Arch/Esp8266/Components/heap/alloc.cpp b/Sming/Arch/Esp8266/Components/heap/alloc.cpp index 67e5b1ccbd..ba4e59a96c 100644 --- a/Sming/Arch/Esp8266/Components/heap/alloc.cpp +++ b/Sming/Arch/Esp8266/Components/heap/alloc.cpp @@ -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); }