openwrt/package/libs/uclibc++/patches/040-delete-c++14.patch

21 lines
438 B
Diff
Raw Normal View History

--- a/src/del_op.cpp
+++ b/src/del_op.cpp
@@ -24,3 +24,7 @@
_UCXXEXPORT void operator delete(void* ptr) throw(){
free(ptr);
}
+
+_UCXXEXPORT void operator delete(void* ptr, size_t size) throw(){
+ free(ptr);
+}
--- a/src/del_opv.cpp
+++ b/src/del_opv.cpp
@@ -24,3 +24,7 @@
_UCXXEXPORT void operator delete[](void * ptr) throw(){
free(ptr);
}
+
+_UCXXEXPORT void operator delete[](void * ptr, size_t size) throw(){
+ free(ptr);
+}