Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Side by Side Diff: src/d8.cc

Issue 8081015: Fixing MinGW build. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 } 810 }
811 printf("+----------------------------------------+-------------+\n"); 811 printf("+----------------------------------------+-------------+\n");
812 } 812 }
813 if (counters_file_ != NULL) 813 if (counters_file_ != NULL)
814 delete counters_file_; 814 delete counters_file_;
815 } 815 }
816 #endif // V8_SHARED 816 #endif // V8_SHARED
817 817
818 818
819 static FILE* FOpen(const char* path, const char* mode) { 819 static FILE* FOpen(const char* path, const char* mode) {
820 #if (defined(_WIN32) || defined(_WIN64)) 820 #if defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))
821 FILE* result; 821 FILE* result;
822 if (fopen_s(&result, path, mode) == 0) { 822 if (fopen_s(&result, path, mode) == 0) {
823 return result; 823 return result;
824 } else { 824 } else {
825 return NULL; 825 return NULL;
826 } 826 }
827 #else 827 #else
828 FILE* file = fopen(path, mode); 828 FILE* file = fopen(path, mode);
829 if (file == NULL) return NULL; 829 if (file == NULL) return NULL;
830 struct stat file_stat; 830 struct stat file_stat;
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
1355 } 1355 }
1356 1356
1357 } // namespace v8 1357 } // namespace v8
1358 1358
1359 1359
1360 #ifndef GOOGLE3 1360 #ifndef GOOGLE3
1361 int main(int argc, char* argv[]) { 1361 int main(int argc, char* argv[]) {
1362 return v8::Shell::Main(argc, argv); 1362 return v8::Shell::Main(argc, argv);
1363 } 1363 }
1364 #endif 1364 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698