]> sigrok.org Git - libsigrokdecode.git/commitdiff
ir_irmp: wrapper lib, silence warnings in "Windows or Unix" condition
authorGerhard Sittig <redacted>
Sun, 26 Dec 2021 07:21:02 +0000 (08:21 +0100)
committerGerhard Sittig <redacted>
Sun, 26 Dec 2021 12:45:09 +0000 (13:45 +0100)
Platform detection in the external IRMP library works best when either
the WIN32 or the unix identifiers are provided, which the sigrokdecode
build environment derives from other identifiers which are more reliably
available.

It turns out that other external dependencies like glib or Python may
provide some of these identifiers, too. Which results in the compiler
warning about symbols' redefinition. Only define derived identifiers
when they haven't been provided yet.

This amends commit ab88bae1c7b9.


No differences found