forked from msys2/MINGW-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path0014-libstdc++-not-support-utf-stream.patch
More file actions
31 lines (30 loc) · 1.2 KB
/
Copy path0014-libstdc++-not-support-utf-stream.patch
File metadata and controls
31 lines (30 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- blender-2.79/source/blender/imbuf/intern/dds/dds_api.cpp.orig 2017-09-14 15:29:21.477036100 +0300
+++ blender-2.79/source/blender/imbuf/intern/dds/dds_api.cpp 2017-09-14 15:29:30.667254000 +0300
@@ -59,7 +59,7 @@
/* open file for writing */
std::ofstream fildes;
-#if defined(WIN32)
+#if defined (_MSC_VER)
wchar_t *wname = alloc_utf16_from_8(name, 0);
fildes.open(wname);
free(wname);
--- blender-2.79/source/blender/imbuf/intern/openexr/openexr_api.cpp.orig 2017-09-14 15:27:43.677657600 +0300
+++ blender-2.79/source/blender/imbuf/intern/openexr/openexr_api.cpp 2017-09-14 15:28:07.224301900 +0300
@@ -167,7 +167,7 @@
IFileStream(const char *filename) : IStream(filename)
{
/* utf-8 file path support on windows */
-#if defined(WIN32)
+#if defined (_MSC_VER)
wchar_t *wfilename = alloc_utf16_from_8(filename, 0);
ifs.open(wfilename, std::ios_base::binary);
free(wfilename);
@@ -273,7 +273,7 @@
OFileStream(const char *filename) : OStream(filename)
{
/* utf-8 file path support on windows */
-#if defined(WIN32)
+#if defined (_MSC_VER)
wchar_t *wfilename = alloc_utf16_from_8(filename, 0);
ofs.open(wfilename, std::ios_base::binary);
free(wfilename);