mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
Backport patch fixing compilation with GCC 15 and remove upstreamed one. Signed-off-by: Rosen Penev <rosenp@gmail.com>
37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
From 7b469b4220f96fb3d036cf68cd7bd30bd39e61d2 Mon Sep 17 00:00:00 2001
|
|
From: Christopher Fore <csfore@posteo.net>
|
|
Date: Wed, 14 Aug 2024 21:02:32 -0400
|
|
Subject: [PATCH] emitterutils: Explicitly include <cstdint>
|
|
|
|
GCC 15 will no longer include it by default, resulting in build
|
|
failures in projects that do not explicitly include it.
|
|
|
|
Error:
|
|
src/emitterutils.cpp:221:11: error: 'uint16_t' was not declared in this scope
|
|
221 | std::pair<uint16_t, uint16_t> EncodeUTF16SurrogatePair(int codePoint) {
|
|
| ^~~~~~~~
|
|
src/emitterutils.cpp:13:1: note: 'uint16_t' is defined in header '<cstdint>';
|
|
this is probably fixable by adding '#include <cstdint>'
|
|
12 | #include "yaml-cpp/null.h"
|
|
+++ |+#include <cstdint>
|
|
13 | #include "yaml-cpp/ostream_wrapper.h"
|
|
|
|
Tests pass.
|
|
|
|
Closes: #1307
|
|
See-also: https://gcc.gnu.org/pipermail/gcc-cvs/2024-August/407124.html
|
|
See-also: https://bugs.gentoo.org/937412
|
|
Signed-off-by: Christopher Fore <csfore@posteo.net>
|
|
---
|
|
src/emitterutils.cpp | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
--- a/src/emitterutils.cpp
|
|
+++ b/src/emitterutils.cpp
|
|
@@ -1,4 +1,5 @@
|
|
#include <algorithm>
|
|
+#include <cstdint>
|
|
#include <iomanip>
|
|
#include <sstream>
|
|
|