AP_Common: fixed cygwin for non-SITL builds

This commit is contained in:
Andrew Tridgell 2024-09-03 09:21:15 +10:00
parent d802b0ec9a
commit 4daca86ba1

View File

@ -84,7 +84,7 @@ void operator delete[](void * ptr)
if (ptr) free(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 wrapper around malloc to ensure all memory is initialised as zero
cygwin needs to wrap _malloc_r cygwin needs to wrap _malloc_r