From 4640d3d9e55dbb964b07677ede942175e9e72ca1 Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Thu, 1 May 2025 13:38:38 -0500 Subject: [PATCH] Update ICM_20948_C.h - x86 targets need string.h explicitly included --- src/util/ICM_20948_C.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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