Commit 1e197cf74674f2884b05e34b5ce994ba1ca05df1

Authored by Werneck
1 parent dd030714
Exists in master and in 1 other branch develop

Adjustmente for MSVC build.

.vscode/c_cpp_properties.json
@@ -9,6 +9,7 @@ @@ -9,6 +9,7 @@
9 ], 9 ],
10 "defines": [ 10 "defines": [
11 "_DEBUG", 11 "_DEBUG",
  12 + "DEBUG",
12 "UNICODE", 13 "UNICODE",
13 "_UNICODE" 14 "_UNICODE"
14 ], 15 ],
.vscode/tasks.json
@@ -11,10 +11,14 @@ @@ -11,10 +11,14 @@
11 "/favor:AMD64", 11 "/favor:AMD64",
12 "/c", 12 "/c",
13 "/EHsc", 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 "${file}" 22 "${file}"
19 ], 23 ],
20 "group": { 24 "group": {
client/src/include/ipc-client-internals.h
@@ -82,6 +82,11 @@ @@ -82,6 +82,11 @@
82 #define GNUC_UNUSED 82 #define GNUC_UNUSED
83 #endif 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 #ifdef HAVE_ICONV 90 #ifdef HAVE_ICONV
86 #include <iconv.h> 91 #include <iconv.h>
87 #endif // HAVE_ICONV 92 #endif // HAVE_ICONV