Commit 1132d818 authored by sgjesse@chromium.org's avatar sgjesse@chromium.org

Fixed broken build of mksnapshot on Windows as there was warnings against

the use of fopen. Change use of fopen to OS::FOpen to get rid of warning.
Review URL: http://codereview.chromium.org/2846

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@303 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 57d29fa4
...@@ -116,7 +116,7 @@ static int* counter_callback(const wchar_t* name) { ...@@ -116,7 +116,7 @@ static int* counter_callback(const wchar_t* name) {
static int WriteInternalSnapshotToFile(const char* filename, static int WriteInternalSnapshotToFile(const char* filename,
const char* str, const char* str,
int size) { int size) {
FILE* f = fopen(filename, "wb"); FILE* f = i::OS::FOpen(filename, "wb");
if (f == NULL) { if (f == NULL) {
i::OS::PrintError("Cannot open file %s for reading.\n", filename); i::OS::PrintError("Cannot open file %s for reading.\n", filename);
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment