Browse Source

Try to fix MinGW compilation (EXTERN to nop)

This regression comes from Visual Studio patches.
Stéphane Raimbault 12 năm trước cách đây
mục cha
commit
4d76d215c6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/modbus.h

+ 1 - 1
src/modbus.h

@@ -34,7 +34,7 @@
 
 #include "modbus-version.h"
 
-#if defined(_WIN32)
+#if defined(_MSC_VER)
 # if defined(DLLBUILD)
 /* define DLLBUILD when building the DLL */
 #  define EXPORT __declspec(dllexport)