Autodetect for UAVCAN_TOSTRING default value

This commit is contained in:
Pavel Kirienko
2014-05-07 14:04:31 +04:00
parent fe16649de3
commit 72c89a1e0f
+6 -1
View File
@@ -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