mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 23:51:35 +08:00
Autodetect for UAVCAN_TOSTRING default value
This commit is contained in:
@@ -76,7 +76,12 @@
|
|||||||
* It might make sense to remove toString() methods for an embedded system
|
* It might make sense to remove toString() methods for an embedded system
|
||||||
*/
|
*/
|
||||||
#ifndef UAVCAN_TOSTRING
|
#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
|
#endif
|
||||||
|
|
||||||
#if UAVCAN_TOSTRING
|
#if UAVCAN_TOSTRING
|
||||||
|
|||||||
Reference in New Issue
Block a user