Commit 4d76d215c6cdfc77a4c8caba05639b75124e9cb8
1 parent
702d2603
Try to fix MinGW compilation (EXTERN to nop)
This regression comes from Visual Studio patches.
Showing
1 changed file
with
1 additions
and
1 deletions
src/modbus.h
| @@ -34,7 +34,7 @@ | @@ -34,7 +34,7 @@ | ||
| 34 | 34 | ||
| 35 | #include "modbus-version.h" | 35 | #include "modbus-version.h" |
| 36 | 36 | ||
| 37 | -#if defined(_WIN32) | 37 | +#if defined(_MSC_VER) |
| 38 | # if defined(DLLBUILD) | 38 | # if defined(DLLBUILD) |
| 39 | /* define DLLBUILD when building the DLL */ | 39 | /* define DLLBUILD when building the DLL */ |
| 40 | # define EXPORT __declspec(dllexport) | 40 | # define EXPORT __declspec(dllexport) |