File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 2121#include < cstdlib>
2222#include < func_exception>
2323
24- _UCXXEXPORT void operator delete[] (void * ptr) throw (){
25- free (ptr);
26- }
24+ // Arduino now defines this.
25+ // _UCXXEXPORT void operator delete[](void * ptr) throw(){
26+ // free(ptr);
27+ // }
Original file line number Diff line number Diff line change 2121#include < cstdlib>
2222#include < func_exception>
2323
24+
25+ // Arduino now defines this
26+ #if 0
2427_UCXXEXPORT void* operator new[](std::size_t numBytes) throw(std::bad_alloc){
2528 //C++ stardard 5.3.4.8 requires that a valid pointer be returned for
2629 //a call to new(0). Thus:
@@ -33,3 +36,4 @@ _UCXXEXPORT void* operator new[](std::size_t numBytes) throw(std::bad_alloc){
3336 }
3437 return p;
3538}
39+ #endif
You can’t perform that action at this time.
0 commit comments