projects/aports·blob master · refs

55 lines · 1.5 KiB

1Patch-Source: https://github.com/xmoto/xmoto/commit/6a54426ce112a585238c3feca0b7ab5a3ac0fe51
2
3From 6a54426ce112a585238c3feca0b7ab5a3ac0fe51 Mon Sep 17 00:00:00 2001
4From: nikekson <[email protected]>
5Date: Wed, 27 Aug 2025 13:56:30 +0300
6Subject: [PATCH] Add missing <cstdint> includes
7
8Fixes MSYS2 build
9---
10 src/common/DBuffer.cpp | 2 ++
11 src/common/VFileIO.cpp | 1 +
12 src/helpers/utf8.h | 1 +
13 3 files changed, 4 insertions(+)
14
15diff --git a/src/common/DBuffer.cpp b/src/common/DBuffer.cpp
16index a49d28dc..093726c5 100644
17--- a/src/common/DBuffer.cpp
18+++ b/src/common/DBuffer.cpp
19@@ -23,7 +23,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */
21 #include "DBuffer.h"
22 #include "helpers/SwapEndian.h"
23+
24 #include <algorithm>
25+#include <cstdint>
26
27 void DBuffer::_FreeDBuffer(void) {
28 /* Free stuff if anything */
29diff --git a/src/common/VFileIO.cpp b/src/common/VFileIO.cpp
30index 42a4d367..75f8d03c 100644
31--- a/src/common/VFileIO.cpp
32+++ b/src/common/VFileIO.cpp
33@@ -49,6 +49,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
34 #include "XMSession_default.h"
35 #include "xmoto/UserConfig.h"
36
37+#include <cstdint>
38 #include <iostream>
39
40 #ifdef WIN32
41diff --git a/src/helpers/utf8.h b/src/helpers/utf8.h
42index 9a58dd93..6dddb49a 100644
43--- a/src/helpers/utf8.h
44+++ b/src/helpers/utf8.h
45@@ -21,6 +21,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
46 #ifndef __XMOTO_UTF8_H__
47 #define __XMOTO_UTF8_H__
48
49+#include <cstdint>
50 #include <string>
51 #include <vector>
52
53--
542.51.0
55