From: Uwe Hermann Date: Mon, 31 Aug 2020 19:53:18 +0000 (+0200) Subject: irmp: Fix a build issue with xtensa cross toolchains. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f96f6337857aeceff1ca406742f3868a9a94b1cb;p=libsigrokdecode.git irmp: Fix a build issue with xtensa cross toolchains. --- 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