From 3a2e1389940ca30e37cbac77617897ee0d8809ed Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 27 Oct 2012 22:41:03 +1100 Subject: [PATCH] AP_Common: no c++ magic for PX4 build --- libraries/AP_Common/c++.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_Common/c++.cpp b/libraries/AP_Common/c++.cpp index a80f65781f..a99d13d6cb 100644 --- a/libraries/AP_Common/c++.cpp +++ b/libraries/AP_Common/c++.cpp @@ -9,6 +9,8 @@ #include +#ifndef PX4FMU_BUILD + void * operator new(size_t size) { return(calloc(size, 1)); @@ -47,3 +49,5 @@ void __cxa_guard_release (__guard *g){ void __cxa_guard_abort (__guard *) { }; +#endif // PX4FMU_BUILD +