Commit 1e197cf74674f2884b05e34b5ce994ba1ca05df1
1 parent
dd030714
Exists in
master
and in
1 other branch
Adjustmente for MSVC build.
Showing
3 changed files
with
14 additions
and
4 deletions
Show diff stats
.vscode/c_cpp_properties.json
.vscode/tasks.json
| ... | ... | @@ -11,10 +11,14 @@ |
| 11 | 11 | "/favor:AMD64", |
| 12 | 12 | "/c", |
| 13 | 13 | "/EHsc", |
| 14 | - "/I","${workspaceFolder}/client/src/include", | |
| 15 | - "/I","${workspaceFolder}/common/src/include", | |
| 16 | - "/I","C:/Program Files/pw3270/sdk/include", | |
| 17 | - "/I","${env:VCPKG_ROOT}/x64-windows-static/include", | |
| 14 | + "/I", | |
| 15 | + "${workspaceFolder}/client/src/include", | |
| 16 | + "/I", | |
| 17 | + "${workspaceFolder}/common/src/include", | |
| 18 | + "/I", | |
| 19 | + "C:/Program Files/pw3270/sdk/include", | |
| 20 | + "/I", | |
| 21 | + "${env:VCPKG_ROOT}/x64-windows-static/include", | |
| 18 | 22 | "${file}" |
| 19 | 23 | ], |
| 20 | 24 | "group": { | ... | ... |
client/src/include/ipc-client-internals.h
| ... | ... | @@ -82,6 +82,11 @@ |
| 82 | 82 | #define GNUC_UNUSED |
| 83 | 83 | #endif |
| 84 | 84 | |
| 85 | +#if defined(_MSC_VER) | |
| 86 | + // MSVC doesn't have a strcasecmp() function; instead it has _stricmp. | |
| 87 | + #define strcasecmp(a,b) _stricmp(a,b) | |
| 88 | +#endif // _MSC_VER | |
| 89 | + | |
| 85 | 90 | #ifdef HAVE_ICONV |
| 86 | 91 | #include <iconv.h> |
| 87 | 92 | #endif // HAVE_ICONV | ... | ... |