diff --git a/src/util/ICM_20948_C.h b/src/util/ICM_20948_C.h index 8e5e734..315c6a6 100644 --- a/src/util/ICM_20948_C.h +++ b/src/util/ICM_20948_C.h @@ -23,7 +23,9 @@ extern "C" #endif /* __cplusplus */ // Portduino target uses system memcmp call, which conflicts with this -#ifndef PORTDUINO +#ifdef PORTDUINO +#include +#else extern int memcmp(const void *, const void *, size_t); // Avoid compiler warnings #endif