]> sigrok.org Git - libsigrokdecode.git/blobdiff - irmp/irmpsystem.h
irmp: Fix a build issue with xtensa cross toolchains.
[libsigrokdecode.git] / 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