浏览代码

Try to fix MinGW compilation (EXTERN to nop)

This regression comes from Visual Studio patches.
Stéphane Raimbault 12 年之前
父节点
当前提交
4d76d215c6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/modbus.h

+ 1 - 1
src/modbus.h

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