Skip to content

Commit fe647f1

Browse files
committed
Update
1 parent e5d954d commit fe647f1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/julia/bundled/patches/fixes.patch

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
--- a/lib/file_utils.cpp
2+
+++ b/lib/file_utils.cpp
3+
@@ -130,7 +130,7 @@ std::string file_path(const std::string& filename, const std::string& basePath)
4+
auto f = !basePath.empty() && !is_absolute(filename) ? basePath + "/" + filename : filename;
5+
6+
// Get real path of absolute path or resolve relative to current directory
7+
-#ifdef _MSC_VER
8+
+#ifdef _WIN32
9+
LPWSTR lpFilePart;
10+
DWORD nBufferLength = GetFullPathNameW(utf8_to_wide(f).c_str(), 0, nullptr, &lpFilePart);
11+
auto* lpBuffer = static_cast<LPWSTR>(LocalAlloc(LMEM_FIXED, sizeof(WCHAR) * nBufferLength));
112
--- a/include/minizinc/file_utils.hh
213
+++ b/include/minizinc/file_utils.hh
314
@@ -16,7 +16,7 @@

0 commit comments

Comments
 (0)