OLD | NEW |
1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 The Crashpad Authors. All rights reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 // See the License for the specific language governing permissions and | 12 // See the License for the specific language governing permissions and |
13 // limitations under the License. | 13 // limitations under the License. |
14 | 14 |
15 #include "client/crashpad_info.h" | 15 #include "client/crashpad_info.h" |
16 | 16 |
17 #include <mach-o/loader.h> | 17 #include <mach-o/loader.h> |
18 | 18 |
| 19 #include "util/stdlib/cxx.h" |
| 20 |
19 #if CXX_LIBRARY_VERSION >= 2011 | 21 #if CXX_LIBRARY_VERSION >= 2011 |
20 #include <type_traits> | 22 #include <type_traits> |
21 #endif | 23 #endif |
22 | 24 |
23 namespace { | 25 namespace { |
24 | 26 |
25 static const uint32_t kCrashpadInfoVersion = 1; | 27 static const uint32_t kCrashpadInfoVersion = 1; |
26 | 28 |
27 } // namespace | 29 } // namespace |
28 | 30 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 : signature_(kSignature), | 69 : signature_(kSignature), |
68 size_(sizeof(*this)), | 70 size_(sizeof(*this)), |
69 version_(kCrashpadInfoVersion), | 71 version_(kCrashpadInfoVersion), |
70 padding_0_(0), | 72 padding_0_(0), |
71 simple_annotations_(nullptr) { | 73 simple_annotations_(nullptr) { |
72 } | 74 } |
73 | 75 |
74 const uint32_t CrashpadInfo::kSignature; | 76 const uint32_t CrashpadInfo::kSignature; |
75 | 77 |
76 } // namespace crashpad | 78 } // namespace crashpad |
OLD | NEW |