Files
MINGW-packages/mingw-w64-cmake/0001-Windows-Add-missing-stringapiset.h-include.patch
T

26 lines
847 B
Diff

From 7618a242db1a0a8792f0fd6b79da26a03ba883ba Mon Sep 17 00:00:00 2001
From: Ray Donnelly <mingw.android@gmail.com>
Date: Mon, 23 Jan 2017 12:46:49 +0000
Subject: [PATCH 1/8] Windows: Add missing stringapiset.h include
This is needed for WideCharToMultiByte()
---
Source/cmFileCommand.cxx | 1 +
1 file changed, 1 insertion(+)
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx
index d3dcc0112..05d2c6151 100644
--- a/Source/cmFileCommand.cxx
+++ b/Source/cmFileCommand.cxx
@@ -55,6 +55,7 @@ class cmSystemToolsFileTime;
using namespace cmFSPermissions;
#if defined(_WIN32)
+#include <stringapiset.h>
// libcurl doesn't support file:// urls for unicode filenames on Windows.
// Convert string from UTF-8 to ACP if this is a file:// URL.
static std::string fix_file_url_windows(const std::string& url)
--
2.16.2.windows.1