From f96f6337857aeceff1ca406742f3868a9a94b1cb Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Mon, 31 Aug 2020 21:53:18 +0200 Subject: irmp: Fix a build issue with xtensa cross toolchains. --- irmp/irmpsystem.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'irmp/irmpsystem.h') diff --git a/irmp/irmpsystem.h b/irmp/irmpsystem.h index 5a1a5dd..4b14952 100644 --- a/irmp/irmpsystem.h +++ b/irmp/irmpsystem.h @@ -17,6 +17,11 @@ # error please include only irmp.h or irsnd.h, not irmpsystem.h #endif +/* Workaround required when building with xtensa (cross-)toolchains. */ +#ifdef __xtensa__ +#undef __xtensa__ +#endif + #if defined(__18CXX) // Microchip PIC C18 compiler # define PIC_C18 #elif defined(__XC8) // PIC XC8 compiler -- cgit v1.2.3-70-g09d2