diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2020-08-31 21:53:18 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2020-08-31 21:53:18 +0200 |
commit | f96f6337857aeceff1ca406742f3868a9a94b1cb (patch) | |
tree | 80373fb8559691c010bba60c9af84af0b8b682e8 /irmp | |
parent | 074cab87596c7bd156c67319d7cbd7ca8fd48eca (diff) | |
download | libsigrokdecode-f96f6337857aeceff1ca406742f3868a9a94b1cb.tar.gz libsigrokdecode-f96f6337857aeceff1ca406742f3868a9a94b1cb.zip |
irmp: Fix a build issue with xtensa cross toolchains.
Diffstat (limited to 'irmp')
-rw-r--r-- | irmp/irmpsystem.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |