aboutsummaryrefslogtreecommitdiff
path: root/ports/libmodbus/fix-static-linkage.patch
blob: 7d7ae79f509e66b732f4a0d3ad5225ee95360592 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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