Changeset 281 for cpp/common/stl-util.cpp
- Timestamp:
- 12/27/14 01:01:43 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/stl-util.cpp
r257 r281 7 7 #include <stdlib.h> 8 8 #include "nonstd_stdio.h" 9 #include "Convert.h" 9 10 #include "nonstd.h" 10 11 #include "framsg.h" … … 91 92 #endif 92 93 { 94 #ifdef _WIN32 95 MFILE *f = mfopen(Convert::utf8ToUtf16(filename).c_str(), Convert::strTOwstr(FOPEN_READ_BINARY).c_str()); 96 #else 93 97 MFILE *f = mfopen(filename, FOPEN_READ_BINARY); 98 #endif 94 99 if (f) 95 100 { … … 119 124 bool writeCompleteFile(const char* filename, const string& text, bool warn_on_fail) 120 125 { 126 #ifdef _WIN32 127 MFILE *f = mfopen(Convert::utf8ToUtf16(filename).c_str(), Convert::strTOwstr(FOPEN_WRITE_BINARY).c_str()); 128 #else 121 129 MFILE *f = mfopen(filename, FOPEN_WRITE_BINARY); 130 #endif 122 131 bool ok = f != NULL; 123 132 if (f)
Note: See TracChangeset
for help on using the changeset viewer.