From 252210246566999971f3afede32054c558541e61 Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Sat, 25 Jul 2009 08:01:30 +0000 Subject: [PATCH] Change .wc_str() to .char_str() to fix unix build breakage, should be fine on windows.. Originally committed to SVN as r3268. --- aegisub/tools/common-respack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/tools/common-respack.cpp b/aegisub/tools/common-respack.cpp index 11b114f80..8949e1ba9 100644 --- a/aegisub/tools/common-respack.cpp +++ b/aegisub/tools/common-respack.cpp @@ -110,7 +110,7 @@ int main(int argc, const char *argv[]) { } wxFileName headerFileName(argv[1]); headerFileName.SetExt(L"h"); - ofstream outH(headerFileName.GetFullPath().wc_str()); + ofstream outH(headerFileName.GetFullPath().char_str()); ofstream outC(argv[1]); outC << "/* This is an automatically generated file and should not be modified directly */" << endl; @@ -127,7 +127,7 @@ int main(int argc, const char *argv[]) { FileIterator iter(argc, argv); while (iter.Next(&filename)) { - ifstream infile(filename.wc_str(), ios::binary); + ifstream infile(filename.char_str(), ios::binary); wxFileName file(filename); wxString identifier = file.GetName() + "_" + file.GetDirs().Last(); nameCleaner.ReplaceAll(&identifier, "_");