Skip to content

Commit 4640d3d

Browse files
authored
Update ICM_20948_C.h - x86 targets need string.h explicitly included
1 parent 55d7a27 commit 4640d3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/util/ICM_20948_C.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ extern "C"
2323
#endif /* __cplusplus */
2424

2525
// Portduino target uses system memcmp call, which conflicts with this
26-
#ifndef PORTDUINO
26+
#ifdef PORTDUINO
27+
#include <string.h>
28+
#else
2729
extern int memcmp(const void *, const void *, size_t); // Avoid compiler warnings
2830
#endif
2931

0 commit comments

Comments
 (0)