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 // Precompiled header for Chromium project on Windows, not used by | 5 // Precompiled header for Chromium project on Windows, not used by |
6 // other build configurations. Using precompiled headers speeds the | 6 // other build configurations. Using precompiled headers speeds the |
7 // build up significantly, around 1/4th on VS 2010 on an HP Z600 with 12 | 7 // build up significantly, around 1/4th on VS 2010 on an HP Z600 with 12 |
8 // GB of memory. | 8 // GB of memory. |
9 // | 9 // |
10 // Numeric comments beside includes are the number of times they were | 10 // Numeric comments beside includes are the number of times they were |
11 // included under src/chrome/browser on 2011/8/20, which was used as a | 11 // included under src/chrome/browser on 2011/8/20, which was used as a |
12 // baseline for deciding what to include in the PCH. Includes without | 12 // baseline for deciding what to include in the PCH. Includes without |
13 // a numeric comment are generally included at least 5 times. It may | 13 // a numeric comment are generally included at least 5 times. It may |
14 // be possible to tweak the speed of the build by commenting out or | 14 // be possible to tweak the speed of the build by commenting out or |
15 // removing some of the less frequently used headers. | 15 // removing some of the less frequently used headers. |
16 | 16 |
17 #if defined(BUILD_PRECOMPILE_H_) | 17 #if defined(BUILD_PRECOMPILE_H_) |
18 #error You shouldn't include the precompiled header file more than once. | 18 #error You shouldn't include the precompiled header file more than once. |
19 #endif | 19 #endif |
20 | 20 |
21 #define BUILD_PRECOMPILE_H_ | 21 #define BUILD_PRECOMPILE_H_ |
22 | 22 |
| 23 #define _USE_MATH_DEFINES |
| 24 |
23 // The Windows header needs to come before almost all the other | 25 // The Windows header needs to come before almost all the other |
24 // Windows-specific headers. | 26 // Windows-specific headers. |
25 #include <Windows.h> | 27 #include <Windows.h> |
26 #include <dwmapi.h> | 28 #include <dwmapi.h> |
27 #include <shellapi.h> | 29 #include <shellapi.h> |
28 #include <wincrypt.h> // 4 | 30 #include <wincrypt.h> // 4 |
29 #include <wtypes.h> // 2 | 31 #include <wtypes.h> // 2 |
30 | 32 |
31 // Defines in atlbase.h cause conflicts; if we could figure out how | 33 // Defines in atlbase.h cause conflicts; if we could figure out how |
32 // this family of headers can be included in the PCH, it might speed | 34 // this family of headers can be included in the PCH, it might speed |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 #include <map> | 101 #include <map> |
100 #include <numeric> // 2 | 102 #include <numeric> // 2 |
101 #include <ostream> | 103 #include <ostream> |
102 #include <queue> | 104 #include <queue> |
103 #include <set> | 105 #include <set> |
104 #include <sstream> | 106 #include <sstream> |
105 #include <stack> | 107 #include <stack> |
106 #include <string> | 108 #include <string> |
107 #include <utility> | 109 #include <utility> |
108 #include <vector> | 110 #include <vector> |
OLD | NEW |