[aseprite] 35/196: Update fstream_path.h

Tobias Hansen thansen at moszumanska.debian.org
Wed Apr 20 18:49:58 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit c7968d4f2d68f0bc5b68a59546525adaaa392e44
Author: Etienne Faisant <etienne.faisant at gmail.com>
Date:   Fri Mar 4 15:03:46 2016 +0100

    Update fstream_path.h
    
    Fix build on Windows with MinGW
---
 src/base/fstream_path.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/base/fstream_path.h b/src/base/fstream_path.h
index 6df1ece..9fbe09b 100644
--- a/src/base/fstream_path.h
+++ b/src/base/fstream_path.h
@@ -11,7 +11,11 @@
 #include "base/string.h"
 
 #ifdef _WIN32
-  #define FSTREAM_PATH(path) (base::from_utf8(path).c_str())
+  #ifdef __MINGW32__
+    #define FSTREAM_PATH(path) (std::string(path).c_str())
+  #else
+    #define FSTREAM_PATH(path) (base::from_utf8(path).c_str())
+  #endif
 #else
   #define FSTREAM_PATH(path) (std::string(path).c_str())
 #endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list