projects/aports·blob master · refs

116 lines · 2.9 KiB

1Patch-Source: https://github.com/Ultimaker/libArcus/pull/160
2---
3From 4826f0d567a6dc373ee8d378f2e40977d94f586b Mon Sep 17 00:00:00 2001
4From: Gregor Riepl <[email protected]>
5Date: Thu, 20 Feb 2025 20:27:10 +0100
6Subject: [PATCH] Add cstdint includes where needed
7
8---
9 include/Arcus/MessageTypeStore.h | 1 +
10 include/Arcus/Types.h | 1 +
11 src/MessageTypeStore.cpp | 1 +
12 src/PlatformSocket.cpp | 2 ++
13 src/PlatformSocket_p.h | 1 +
14 src/Socket_p.h | 1 +
15 src/WireMessage_p.h | 2 ++
16 test_package/src/test.cpp | 1 +
17 8 files changed, 10 insertions(+)
18
19diff --git a/include/Arcus/MessageTypeStore.h b/include/Arcus/MessageTypeStore.h
20index 6cc7b5ee..416c6686 100644
21--- a/include/Arcus/MessageTypeStore.h
22+++ b/include/Arcus/MessageTypeStore.h
23@@ -5,6 +5,7 @@
24 #define ARCUS_MESSAGE_TYPE_STORE_H
25
26 #include <memory>
27+#include <cstdint>
28
29 #include "Arcus/Types.h"
30
31diff --git a/include/Arcus/Types.h b/include/Arcus/Types.h
32index 9fdcc60a..58103de6 100644
33--- a/include/Arcus/Types.h
34+++ b/include/Arcus/Types.h
35@@ -6,6 +6,7 @@
36
37 #include <memory>
38 #include <string>
39+#include <cstdint>
40
41 namespace google
42 {
43diff --git a/src/MessageTypeStore.cpp b/src/MessageTypeStore.cpp
44index 44c94ec7..5db03cdd 100644
45--- a/src/MessageTypeStore.cpp
46+++ b/src/MessageTypeStore.cpp
47@@ -6,6 +6,7 @@
48 #include <iostream>
49 #include <sstream>
50 #include <unordered_map>
51+#include <cstdint>
52
53 #include <google/protobuf/compiler/importer.h>
54 #include <google/protobuf/dynamic_message.h>
55diff --git a/src/PlatformSocket.cpp b/src/PlatformSocket.cpp
56index ab113e32..90c590da 100644
57--- a/src/PlatformSocket.cpp
58+++ b/src/PlatformSocket.cpp
59@@ -1,6 +1,8 @@
60 // Copyright (c) 2022 Ultimaker B.V.
61 // libArcus is released under the terms of the LGPLv3 or higher.
62
63+#include <cstdint>
64+
65 #include "PlatformSocket_p.h"
66
67 #ifdef _WIN32
68diff --git a/src/PlatformSocket_p.h b/src/PlatformSocket_p.h
69index b1e9aa59..3f7e4249 100644
70--- a/src/PlatformSocket_p.h
71+++ b/src/PlatformSocket_p.h
72@@ -6,6 +6,7 @@
73
74 #include <memory>
75 #include <string>
76+#include <cstdint>
77
78 namespace Arcus
79 {
80diff --git a/src/Socket_p.h b/src/Socket_p.h
81index 33f5873f..7711389c 100644
82--- a/src/Socket_p.h
83+++ b/src/Socket_p.h
84@@ -12,6 +12,7 @@
85 #include <string>
86 #include <thread>
87 #include <unordered_map>
88+#include <cstdint>
89
90 #ifdef _WIN32
91 #include <winsock2.h>
92diff --git a/src/WireMessage_p.h b/src/WireMessage_p.h
93index 07f8dd13..757aa32e 100644
94--- a/src/WireMessage_p.h
95+++ b/src/WireMessage_p.h
96@@ -4,6 +4,8 @@
97 #ifndef ARCUS_WIRE_MESSAGE_P_H
98 #define ARCUS_WIRE_MESSAGE_P_H
99
100+#include <cstdint>
101+
102 #include "Arcus/Types.h"
103
104 namespace Arcus
105diff --git a/test_package/src/test.cpp b/test_package/src/test.cpp
106index 52ca8438..09f13a59 100644
107--- a/test_package/src/test.cpp
108+++ b/test_package/src/test.cpp
109@@ -4,6 +4,7 @@
110 #include <chrono>
111 #include <iostream>
112 #include <thread>
113+#include <cstdint>
114
115 #include "test.h"
116