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

Side by Side Diff: base/win/win_util.cc

Issue 798163004: remove some dead visual studio < 2013 code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove MAYBE macro completely Created 6 years 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
« no previous file with comments | « base/logging.cc ('k') | chrome/app/delay_load_hook_unittest_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/win/win_util.h" 5 #include "base/win/win_util.h"
6 6
7 #include <aclapi.h> 7 #include <aclapi.h>
8 #include <cfgmgr32.h> 8 #include <cfgmgr32.h>
9 #include <lm.h> 9 #include <lm.h>
10 #include <powrprof.h> 10 #include <powrprof.h>
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 // deployed. 441 // deployed.
442 if (os_info->version() == base::win::VERSION_SERVER_2003) 442 if (os_info->version() == base::win::VERSION_SERVER_2003)
443 return false; 443 return false;
444 444
445 DCHECK(os_info->version() >= base::win::VERSION_VISTA); 445 DCHECK(os_info->version() >= base::win::VERSION_VISTA);
446 return true; // New enough to have SHA-256 support. 446 return true; // New enough to have SHA-256 support.
447 } 447 }
448 448
449 } // namespace win 449 } // namespace win
450 } // namespace base 450 } // namespace base
451
452 #ifdef _MSC_VER
453
454 // There are optimizer bugs in x86 VS2012 pre-Update 1.
455 #if _MSC_VER == 1700 && defined _M_IX86 && _MSC_FULL_VER < 170051106
456
457 #pragma message("Relevant defines:")
458 #define __STR2__(x) #x
459 #define __STR1__(x) __STR2__(x)
460 #define __PPOUT__(x) "#define " #x " " __STR1__(x)
461 #if defined(_M_IX86)
462 #pragma message(__PPOUT__(_M_IX86))
463 #endif
464 #if defined(_M_X64)
465 #pragma message(__PPOUT__(_M_X64))
466 #endif
467 #if defined(_MSC_FULL_VER)
468 #pragma message(__PPOUT__(_MSC_FULL_VER))
469 #endif
470
471 #pragma message("Visual Studio 2012 x86 must be updated to at least Update 1")
472 #error Must install Update 1 to Visual Studio 2012.
473 #endif
474
475 #endif // _MSC_VER
476
OLDNEW
« no previous file with comments | « base/logging.cc ('k') | chrome/app/delay_load_hook_unittest_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698