X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=irmp%2Firmp-main-sharedlib.c;h=6f5c0581ccef56d12829689d73f9cff2a3ea6f9e;hp=570df95fedbc02913525089e395d438a02eedfe6;hb=ab88bae1c7b9;hpb=2a295b87d7f7f9fc8121b9ff61dd3ea430aa5567 diff --git a/irmp/irmp-main-sharedlib.c b/irmp/irmp-main-sharedlib.c index 570df95..6f5c058 100644 --- a/irmp/irmp-main-sharedlib.c +++ b/irmp/irmp-main-sharedlib.c @@ -23,7 +23,18 @@ * Include the IRMP core logic. This approach is required because of * static variables which hold internal state. The core logic started * as an MCU project where resources are severely constrained. + * + * This libsigrokdecode incarnation of IRMP will always be used in the + * UNIX_OR_WINDOWS configuration. But libtool(1) breaks the upstream + * logic's platform detection. Check reliably available conditions here + * and provide expected symbols to the library, to reduce changes to the + * upstream project. */ +#if defined _WIN32 +# define WIN32 +#else +# define unix +#endif #include "irmp.h" #include "irmp.c"