]> sigrok.org Git - libsigrokdecode.git/commitdiff
irmp: Fix a build issue with xtensa cross toolchains.
authorUwe Hermann <redacted>
Mon, 31 Aug 2020 19:53:18 +0000 (21:53 +0200)
committerUwe Hermann <redacted>
Mon, 31 Aug 2020 19:53:18 +0000 (21:53 +0200)
irmp/irmpsystem.h

index 5a1a5dde5add365a2df8a5d6467e031bde5ecab7..4b1495284969a29d33228991127710ca25a80d68 100644 (file)
 #  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