mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-18 21:49:05 +08:00
Revert to using __builtin_isfinite for QuRT.
See discussion in https://github.com/PX4/Firmware/issues/5756
This commit is contained in:
parent
ab4d7dfc59
commit
09d36a63ef
@ -180,9 +180,11 @@ using ::isfinite;
|
||||
# define PX4_TICKS_PER_SEC 1000L
|
||||
# define SIOCDEVPRIVATE 999999
|
||||
|
||||
// HEXAGON defines isfinite() erroneously as a macro even for C++.
|
||||
// HEXAGON's isfinite() is erroneously defined as a macro even for C++,
|
||||
// using std::isfinite (using ::isfinite) which is a function, but which
|
||||
// appears to be broken because of undefined symbols (ie, _Dtest (C linkage)).
|
||||
# undef PX4_ISFINITE
|
||||
# define PX4_ISFINITE(x) isfinite(x)
|
||||
# define PX4_ISFINITE(x) __builtin_isfinite(x)
|
||||
|
||||
#else // __PX4_QURT
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user