diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2020-07-31 13:57:28 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-30 22:57:28 -0700 |
| commit | ef037af3d73d9843d22a298f01504510b76f200f (patch) | |
| tree | b119dd97db2d9f23074bd248e877e174ac96184f /ports/libmodbus/fix-static-linkage.patch | |
| parent | 4da29fee9db506bc68c46108a4e9379ea0d8f431 (diff) | |
| download | vcpkg-ef037af3d73d9843d22a298f01504510b76f200f.tar.gz vcpkg-ef037af3d73d9843d22a298f01504510b76f200f.zip | |
[libmodbus] Fix static linkage error (#12530)
Diffstat (limited to 'ports/libmodbus/fix-static-linkage.patch')
| -rw-r--r-- | ports/libmodbus/fix-static-linkage.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/libmodbus/fix-static-linkage.patch b/ports/libmodbus/fix-static-linkage.patch new file mode 100644 index 000000000..7d7ae79f5 --- /dev/null +++ b/ports/libmodbus/fix-static-linkage.patch @@ -0,0 +1,13 @@ +diff --git a/src/modbus.h b/src/modbus.h +index fbe20bc..895d05d 100644 +--- a/src/modbus.h ++++ b/src/modbus.h +@@ -24,6 +24,8 @@ + # if defined(DLLBUILD) + /* define DLLBUILD when building the DLL */ + # define MODBUS_API __declspec(dllexport) ++# elif defined(LIBBUILD) ++# define MODBUS_API + # else + # define MODBUS_API __declspec(dllimport) + # endif |
