OLD | NEW |
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 Loading... |
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 | |
OLD | NEW |