From 4daca86ba170bba4ef6acb86929441cbf5755d67 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 3 Sep 2024 09:21:15 +1000 Subject: [PATCH] AP_Common: fixed cygwin for non-SITL builds --- libraries/AP_Common/c++.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Common/c++.cpp b/libraries/AP_Common/c++.cpp index eab43682fb..e51294647b 100644 --- a/libraries/AP_Common/c++.cpp +++ b/libraries/AP_Common/c++.cpp @@ -84,7 +84,7 @@ void operator delete[](void * ptr) if (ptr) free(ptr); } -#ifdef CYGWIN_BUILD +#if defined(CYGWIN_BUILD) && CONFIG_HAL_BOARD == HAL_BOARD_SITL /* wrapper around malloc to ensure all memory is initialised as zero cygwin needs to wrap _malloc_r