platforms: use define for lockstep scheduler

Instead of using the define __PX4_POSIX_SITL it makes more sense to have
a define just to determine if the lockstep scheduler should be used.
This commit is contained in:
Julian Oes
2018-12-22 10:32:18 +01:00
parent 73578a593f
commit 547dd8511b
8 changed files with 18 additions and 10 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
#define clockid_t int
#endif
#if defined(__PX4_POSIX_SITL) || defined(__PX4_QURT)
#if defined(ENABLE_LOCKSTEP_SCHEDULER) || defined(__PX4_QURT)
__BEGIN_DECLS
__EXPORT int px4_clock_gettime(clockid_t clk_id, struct timespec *tp);