mirror of https://github.com/ArduPilot/ardupilot
AP_HAL: fixed build with AP_SIM_ENABLED
This commit is contained in:
parent
e6528eaaae
commit
7d1cc14b1e
|
@ -6,7 +6,7 @@
|
|||
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
|
||||
*/
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#define AP_NETWORKING_SOCKETS_ENABLED 1
|
||||
#endif
|
||||
#include "Socket.hpp"
|
||||
#else
|
||||
#elif !AP_SIM_ENABLED
|
||||
#error "attempt to use Socket_native.h without native sockets"
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue