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 #include <algorithm> |
7 #include <iterator> | |
brettw
2012/04/04 15:39:14
Can you also fix this case to move <algorithm> <st
halyavin
2012/04/04 16:12:01
Done.
| |
7 #include <stdio.h> | 8 #include <stdio.h> |
8 #include <stdlib.h> | 9 #include <stdlib.h> |
9 #include <string> | 10 #include <string> |
10 | 11 |
11 using namespace std; | 12 using namespace std; |
12 | 13 |
13 // Don't use stderr for errors because VS has large buffers on them, leading | 14 // Don't use stderr for errors because VS has large buffers on them, leading |
14 // to confusing error output. | 15 // to confusing error output. |
15 static void Fatal(const wchar_t* msg) { | 16 static void Fatal(const wchar_t* msg) { |
16 wprintf(L"supalink fatal error: %s\n", msg); | 17 wprintf(L"supalink fatal error: %s\n", msg); |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
187 DumpFile(backup_copy.c_str(), fixed); | 188 DumpFile(backup_copy.c_str(), fixed); |
188 | 189 |
189 end_time = GetTickCount64(); | 190 end_time = GetTickCount64(); |
190 | 191 |
191 wprintf(L" took %.2fs to modify @rsp file\n", | 192 wprintf(L" took %.2fs to modify @rsp file\n", |
192 (end_time - start_time) / 1000.0); | 193 (end_time - start_time) / 1000.0); |
193 } | 194 } |
194 | 195 |
195 Fallback(); | 196 Fallback(); |
196 } | 197 } |
OLD | NEW |