[wpimath] Workaround intellisense Eigen issue (#4992)

Co-authored-by: Tyler Veness <calcmogul@gmail.com>
This commit is contained in:
Peter Johnson
2023-01-21 15:16:12 -08:00
committed by GitHub
parent b2b25bf09f
commit 504fa22143
3 changed files with 41 additions and 1 deletions

View File

@@ -58,6 +58,16 @@
// Compiler identification, EIGEN_COMP_*
//------------------------------------------------------------------------------------------
/// \internal Disable NEON features in Intellisense
#if __INTELLISENSE__
#ifdef __ARM_NEON
#undef __ARM_NEON
#endif
#ifdef __ARM_NEON__
#undef __ARM_NEON__
#endif
#endif
/// \internal EIGEN_COMP_GNUC set to 1 for all compilers compatible with GCC
#ifdef __GNUC__
#define EIGEN_COMP_GNUC (__GNUC__*10+__GNUC_MINOR__)