[PATCH] fix(build): Add missing cstdint includes (#3159)
authorajakk <jchelmert3@posteo.net>
Sun, 1 Sep 2024 12:28:36 +0000 (07:28 -0500)
committerSamuel Henrique <samueloph@debian.org>
Sun, 21 Sep 2025 08:00:15 +0000 (10:00 +0200)
In GCC 15, cstdint is less commonly included in stdlib headers so we
need explicit includes: https://gcc.gnu.org/gcc-15/porting_to.html

See-Also: https://bugs.gentoo.org/937526

Signed-off-by: John Helmert III <ajak@gentoo.org>
Gbp-Pq: Name add_missing_cstdint_includes.patch

include/ipc/decoder.hpp
include/ipc/encoder.hpp
include/ipc/msg.hpp
include/utils/color.hpp
include/utils/string.hpp
src/ipc/encoder.cpp
src/utils/color.cpp

index 9d1afe1c33702c37d02ca4476bb719ae5d87530f..dcdf9e1a47848a60d2a18e91dddc8de4e036e5c6 100644 (file)
@@ -5,6 +5,8 @@
 #include "errors.hpp"
 #include "ipc/msg.hpp"
 
+#include <cstdint>
+
 POLYBAR_NS
 
 namespace ipc {
index 1fd36f601b6a54fe99ab27cb871de844bff3527f..ebb1ea82007de6583e50d41bba3f539c60e6b25e 100644 (file)
@@ -4,6 +4,8 @@
 #include "errors.hpp"
 #include "ipc/msg.hpp"
 
+#include <cstdint>
+
 POLYBAR_NS
 
 namespace ipc {
index 1b37022dcae2c040ec969fe21e0b54d8ad1d5774..a423d3bb61efd805f9efc6a87038d71a62cdbdfb 100644 (file)
@@ -3,6 +3,7 @@
 #include "common.hpp"
 
 #include <array>
+#include <cstdint>
 
 POLYBAR_NS
 
index 491d48ee3558e2e8cc86e41f010f0c02021a836e..9d301af79278a9a9a99c3df1e1e005caafce8f46 100644 (file)
@@ -1,6 +1,7 @@
 #pragma once
 
 #include <cstdlib>
+#include <cstdint>
 
 #include "common.hpp"
 
index 45eaec0670d355a700868942d7bc43ea37b03bb2..27e06f7a4566ad3fd588a797bfafb9bf2a42c1a9 100644 (file)
@@ -1,5 +1,6 @@
 #pragma once
 
+#include <cstdint>
 #include <sstream>
 
 #include "common.hpp"
index 87cbd9157110114a892d0fd2db735b4ffc952721..38da55a15998c667c6c986e6221b19a443ae779e 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <cassert>
 #include <cstring>
+#include <cstdint>
 
 POLYBAR_NS
 
index 59fa59aeca7427ae554ea5c47b1359de3c663646..7e47dad5ca8598282fab8d3f1939980132ca8fec 100644 (file)
@@ -1,6 +1,7 @@
 #include "utils/color.hpp"
 
 #include <algorithm>
+#include <cstdint>
 
 POLYBAR_NS