diff options
Diffstat (limited to 'vcpkg/ports/libkml/patch_empty_literal_on_vc.patch')
| -rw-r--r-- | vcpkg/ports/libkml/patch_empty_literal_on_vc.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/libkml/patch_empty_literal_on_vc.patch b/vcpkg/ports/libkml/patch_empty_literal_on_vc.patch new file mode 100644 index 0000000..8a3581a --- /dev/null +++ b/vcpkg/ports/libkml/patch_empty_literal_on_vc.patch @@ -0,0 +1,13 @@ +diff --git a/src/kml/base/file_win32.cc b/src/kml/base/file_win32.cc +index c46e099..28ccb36 100644 +--- a/src/kml/base/file_win32.cc ++++ b/src/kml/base/file_win32.cc +@@ -42,7 +42,7 @@ namespace kmlbase { + // Internal to the win32 file class. We need a conversion from string to + // LPCWSTR. + static std::wstring Str2Wstr(const string& str) { +- std::wstring wstr(str.length(), L''); ++ std::wstring wstr(str.length(), L' '); + std::copy(str.begin(), str.end(), wstr.begin()); + return wstr; + } |