mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-19 04:49:06 +08:00
Autodetect for UAVCAN_TOSTRING default value
This commit is contained in:
parent
fe16649de3
commit
72c89a1e0f
@ -76,7 +76,12 @@
|
||||
* It might make sense to remove toString() methods for an embedded system
|
||||
*/
|
||||
#ifndef UAVCAN_TOSTRING
|
||||
# define UAVCAN_TOSTRING 1
|
||||
// Objective is to make sure that we're NOT on a resource constrained platform
|
||||
# if __linux__ || __linux || __APPLE__ || _WIN64 || _WIN32
|
||||
# define UAVCAN_TOSTRING 1
|
||||
# else
|
||||
# define UAVCAN_TOSTRING 0
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if UAVCAN_TOSTRING
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user