AP_HAL: fixed build with AP_SIM_ENABLED

This commit is contained in:
Andrew Tridgell 2024-01-07 13:00:37 +11:00
parent e6528eaaae
commit 7d1cc14b1e
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
macros to allow code to build on multiple platforms more easily macros to allow code to build on multiple platforms more easily
*/ */
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL || CONFIG_HAL_BOARD == HAL_BOARD_LINUX || HAL_WITH_EKF_DOUBLE || (CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS && AP_SIM_ENABLED) #if CONFIG_HAL_BOARD == HAL_BOARD_SITL || CONFIG_HAL_BOARD == HAL_BOARD_LINUX || HAL_WITH_EKF_DOUBLE || AP_SIM_ENABLED
/* /*
allow double maths on Linux and SITL to avoid problems with system headers allow double maths on Linux and SITL to avoid problems with system headers
*/ */

View File

@ -12,7 +12,7 @@
#define AP_NETWORKING_SOCKETS_ENABLED 1 #define AP_NETWORKING_SOCKETS_ENABLED 1
#endif #endif
#include "Socket.hpp" #include "Socket.hpp"
#else #elif !AP_SIM_ENABLED
#error "attempt to use Socket_native.h without native sockets" #error "attempt to use Socket_native.h without native sockets"
#endif #endif