| 1 | Patch-Source: https://github.com/Ultimaker/libArcus/pull/160
|
| 2 | ---
|
| 3 | From 4826f0d567a6dc373ee8d378f2e40977d94f586b Mon Sep 17 00:00:00 2001
|
| 4 | From: Gregor Riepl <[email protected]>
|
| 5 | Date: Thu, 20 Feb 2025 20:27:10 +0100
|
| 6 | Subject: [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 |
|
| 19 | diff --git a/include/Arcus/MessageTypeStore.h b/include/Arcus/MessageTypeStore.h
|
| 20 | index 6cc7b5ee..416c6686 100644
|
| 21 | |
| 22 | |
| 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 |
|
| 31 | diff --git a/include/Arcus/Types.h b/include/Arcus/Types.h
|
| 32 | index 9fdcc60a..58103de6 100644
|
| 33 | |
| 34 | |
| 35 | @@ -6,6 +6,7 @@
|
| 36 |
|
| 37 | #include <memory>
|
| 38 | #include <string>
|
| 39 | +#include <cstdint>
|
| 40 |
|
| 41 | namespace google
|
| 42 | {
|
| 43 | diff --git a/src/MessageTypeStore.cpp b/src/MessageTypeStore.cpp
|
| 44 | index 44c94ec7..5db03cdd 100644
|
| 45 | |
| 46 | |
| 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>
|
| 55 | diff --git a/src/PlatformSocket.cpp b/src/PlatformSocket.cpp
|
| 56 | index ab113e32..90c590da 100644
|
| 57 | |
| 58 | |
| 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
|
| 68 | diff --git a/src/PlatformSocket_p.h b/src/PlatformSocket_p.h
|
| 69 | index b1e9aa59..3f7e4249 100644
|
| 70 | |
| 71 | |
| 72 | @@ -6,6 +6,7 @@
|
| 73 |
|
| 74 | #include <memory>
|
| 75 | #include <string>
|
| 76 | +#include <cstdint>
|
| 77 |
|
| 78 | namespace Arcus
|
| 79 | {
|
| 80 | diff --git a/src/Socket_p.h b/src/Socket_p.h
|
| 81 | index 33f5873f..7711389c 100644
|
| 82 | |
| 83 | |
| 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>
|
| 92 | diff --git a/src/WireMessage_p.h b/src/WireMessage_p.h
|
| 93 | index 07f8dd13..757aa32e 100644
|
| 94 | |
| 95 | |
| 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
|
| 105 | diff --git a/test_package/src/test.cpp b/test_package/src/test.cpp
|
| 106 | index 52ca8438..09f13a59 100644
|
| 107 | |
| 108 | |
| 109 | @@ -4,6 +4,7 @@
|
| 110 | #include <chrono>
|
| 111 | #include <iostream>
|
| 112 | #include <thread>
|
| 113 | +#include <cstdint>
|
| 114 |
|
| 115 | #include "test.h"
|
| 116 |
|