From 5200397bbafdd8919f4f6263de9805f5e3d2ee5a Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Thu, 15 Oct 2020 15:11:53 -0600 Subject: [PATCH] Fix compilation on AVR The __reentrant keyword introduced in common code is for SDCC. --- src/common/include/common/i2c.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/include/common/i2c.h b/src/common/include/common/i2c.h index ca7cfc6..c8102fe 100644 --- a/src/common/include/common/i2c.h +++ b/src/common/include/common/i2c.h @@ -6,6 +6,11 @@ #include #include +// Prevent failures to compile on AVR +#ifndef __SDCC + #define __reentrant +#endif + // I2C bus, should be defined elsewhere struct I2C;