Reviewers: Mads Ager, Description: Fix nonportable fopen call in new snapshot code.
Please review this at http://codereview.chromium.org/340002 SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/snapshot-common.cc Index: src/snapshot-common.cc =================================================================== --- src/snapshot-common.cc (revision 3142) +++ src/snapshot-common.cc (working copy) @@ -32,6 +32,7 @@ #include "api.h" #include "serialize.h" #include "snapshot.h" +#include "platform.h" namespace v8 { namespace internal { @@ -96,7 +97,7 @@ class FileByteSink : public SnapshotByteSink { public: explicit FileByteSink(const char* snapshot_file) { - fp_ = fopen(snapshot_file, "wb"); + fp_ = OS::FOpen(snapshot_file, "wb"); if (fp_ == NULL) { PrintF("Unable to write to snapshot file \"%s\"\n", snapshot_file); exit(1); --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
