| 1 | Patch-Source: https://github.com/xmoto/xmoto/commit/6a54426ce112a585238c3feca0b7ab5a3ac0fe51
|
| 2 |
|
| 3 | From 6a54426ce112a585238c3feca0b7ab5a3ac0fe51 Mon Sep 17 00:00:00 2001
|
| 4 | From: nikekson <[email protected]>
|
| 5 | Date: Wed, 27 Aug 2025 13:56:30 +0300
|
| 6 | Subject: [PATCH] Add missing <cstdint> includes
|
| 7 |
|
| 8 | Fixes 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 |
|
| 15 | diff --git a/src/common/DBuffer.cpp b/src/common/DBuffer.cpp
|
| 16 | index a49d28dc..093726c5 100644
|
| 17 | |
| 18 | |
| 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 */
|
| 29 | diff --git a/src/common/VFileIO.cpp b/src/common/VFileIO.cpp
|
| 30 | index 42a4d367..75f8d03c 100644
|
| 31 | |
| 32 | |
| 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
|
| 41 | diff --git a/src/helpers/utf8.h b/src/helpers/utf8.h
|
| 42 | index 9a58dd93..6dddb49a 100644
|
| 43 | |
| 44 | |
| 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 | --
|
| 54 | 2.51.0
|
| 55 |
|