diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2022-02-14 20:35:05 +0100 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2022-02-24 22:22:08 +0100 |
commit | 24ba9e1bdfe107e394176eda3116b714463a8437 (patch) | |
tree | cbd34738c21e30efeb2e737825ad6f6718b1ae25 /tests/inst.c | |
parent | da253ef59221744f7258720861638bd1ae2e335f (diff) | |
download | libsigrokdecode-24ba9e1bdfe107e394176eda3116b714463a8437.tar.gz libsigrokdecode-24ba9e1bdfe107e394176eda3116b714463a8437.zip |
libsigrokdecode.h: declare Windows dllexport for SRD_API routines
Add the __declspec(dllexport) decoration to SRD_API routines on Windows
when building the library body (this is new). Stick with the default
visibility on all other platforms (as previously implemented).
This is similar to what Kyle Johnson submitted in PR 66, but phrased
differently. Avoid the non-portable indentation before the hash in
preprocessor instructions. Use positive logic for readability (put
the Windows branch next to the check for the Windows platform).
Reported-By: Kyle Johnson <KyleJ61782@gmail.com>
Diffstat (limited to 'tests/inst.c')
0 files changed, 0 insertions, 0 deletions