Skip to content

Commit ffc5a13

Browse files
committed
explicitly include cstdint for gcc 13
Starting from gcc 13, it is required to explicitly include cstdint, as other standard library header files will not include other headers that were being used internally by the library. So update_engine also has to explicitly include cstdint to avoid build errors like below: ``` ./src/update_engine/install_plan.h:18:15: error: uint64_t has not been declared ./src/update_engine/install_plan.h:10:1: note: uint64_t is defined in header <cstdint>; did you forget to #include <cstdint>? ```
1 parent e3d47bf commit ffc5a13

14 files changed

+14
-0
lines changed

src/strings/string_number_conversions.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <stdint.h>
99

10+
#include <cstdint>
1011
#include <string>
1112

1213
// ----------------------------------------------------------------------------

src/update_engine/delta_metadata.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <inttypes.h>
99

10+
#include <cstdint>
1011
#include <vector>
1112

1213
#include <update_engine/action_processor.h>

src/update_engine/delta_performer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <inttypes.h>
99

10+
#include <cstdint>
1011
#include <string>
1112
#include <vector>
1213

src/update_engine/extent_mapper.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_EXTENT_MAPPER_H__
66
#define CHROMEOS_PLATFORM_UPDATE_ENGINE_EXTENT_MAPPER_H__
77

8+
#include <cstdint>
89
#include <string>
910
#include <vector>
1011

src/update_engine/graph_types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_GRAPH_TYPES_H__
66
#define CHROMEOS_PLATFORM_UPDATE_ENGINE_GRAPH_TYPES_H__
77

8+
#include <cstdint>
89
#include <limits>
910
#include <map>
1011
#include <set>

src/update_engine/install_plan.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_INSTALL_PLAN_H__
66
#define CHROMEOS_PLATFORM_UPDATE_ENGINE_INSTALL_PLAN_H__
77

8+
#include <cstdint>
89
#include <string>
910
#include <vector>
1011

src/update_engine/omaha_response.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <sys/stat.h>
1010
#include <sys/types.h>
1111

12+
#include <cstdint>
1213
#include <string>
1314
#include <vector>
1415

src/update_engine/payload_signer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_PAYLOAD_SIGNER_H__
66
#define CHROMEOS_PLATFORM_UPDATE_ENGINE_PAYLOAD_SIGNER_H__
77

8+
#include <cstdint>
89
#include <string>
910
#include <vector>
1011

src/update_engine/payload_state.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_PAYLOAD_STATE_H__
66
#define CHROMEOS_PLATFORM_UPDATE_ENGINE_PAYLOAD_STATE_H__
77

8+
#include <cstdint>
89
#include <chrono>
910

1011
#include "update_engine/payload_state_interface.h"

src/update_engine/payload_state_interface.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#define CHROMEOS_PLATFORM_UPDATE_ENGINE_PAYLOAD_STATE_INTERFACE_H__
77

88
#include <chrono>
9+
#include <cstdint>
910
#include <string>
1011

1112
#include "update_engine/action_processor.h"

0 commit comments

Comments
 (0)