OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <windows.h> | 5 #include <windows.h> |
6 #include <algorithm> | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 |
| 10 #include <algorithm> |
| 11 #include <iterator> |
9 #include <string> | 12 #include <string> |
10 | 13 |
11 using namespace std; | 14 using namespace std; |
12 | 15 |
13 // Don't use stderr for errors because VS has large buffers on them, leading | 16 // Don't use stderr for errors because VS has large buffers on them, leading |
14 // to confusing error output. | 17 // to confusing error output. |
15 static void Fatal(const wchar_t* msg) { | 18 static void Fatal(const wchar_t* msg) { |
16 wprintf(L"supalink fatal error: %s\n", msg); | 19 wprintf(L"supalink fatal error: %s\n", msg); |
17 exit(1); | 20 exit(1); |
18 } | 21 } |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 DumpFile(backup_copy.c_str(), fixed); | 190 DumpFile(backup_copy.c_str(), fixed); |
188 | 191 |
189 end_time = GetTickCount64(); | 192 end_time = GetTickCount64(); |
190 | 193 |
191 wprintf(L" took %.2fs to modify @rsp file\n", | 194 wprintf(L" took %.2fs to modify @rsp file\n", |
192 (end_time - start_time) / 1000.0); | 195 (end_time - start_time) / 1000.0); |
193 } | 196 } |
194 | 197 |
195 Fallback(); | 198 Fallback(); |
196 } | 199 } |
OLD | NEW |