Skip to content

Commit 38e5ad9

Browse files
meatorBiswa96
authored andcommitted
Add missing <cstdint> includes for GCC 16 Fedora
1 parent 711539e commit 38e5ad9

2 files changed

Lines changed: 57 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
From 4fedf25206c442d655d21e95e6ec5557383db006 Mon Sep 17 00:00:00 2001
2+
From: meator <meator.dev@gmail.com>
3+
Date: Wed, 14 Jan 2026 11:57:22 +0100
4+
Subject: [PATCH] Include missing cstdint header
5+
6+
This code relied on the fact that some system headers pulled <cstdint>,
7+
so it did not bother to include it itself. However, this behavior is not
8+
specified, so compiler updates can break the code by no longer including
9+
this header.
10+
---
11+
hex.cpp | 2 ++
12+
1 file changed, 2 insertions(+)
13+
14+
diff --git a/hex.cpp b/hex.cpp
15+
index a4b7715..c46f42d 100644
16+
--- a/hex.cpp
17+
+++ b/hex.cpp
18+
@@ -18,6 +18,8 @@
19+
20+
#include "android-base/logging.h"
21+
22+
+#include <cstdint>
23+
+
24+
namespace android {
25+
namespace base {
26+
27+
--
28+
2.51.2
29+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
From b34e48bd2ac596d5d92ee77ee5cb040399b4466a Mon Sep 17 00:00:00 2001
2+
From: meator <meator.dev@gmail.com>
3+
Date: Wed, 14 Jan 2026 12:13:37 +0100
4+
Subject: [PATCH] Include missing cstdint header
5+
6+
This code relied on the fact that some system headers pulled <cstdint>,
7+
so it did not bother to include it itself. However, this behavior is not
8+
specified, so compiler updates can break the code by no longer including
9+
this header.
10+
---
11+
include/ziparchive/zip_writer.h | 1 +
12+
1 file changed, 1 insertion(+)
13+
14+
diff --git a/include/ziparchive/zip_writer.h b/include/ziparchive/zip_writer.h
15+
index 268e8b6..c85be2a 100644
16+
--- a/include/ziparchive/zip_writer.h
17+
+++ b/include/ziparchive/zip_writer.h
18+
@@ -18,6 +18,7 @@
19+
20+
#include <cstdio>
21+
#include <ctime>
22+
+#include <cstdint>
23+
24+
#include <gtest/gtest_prod.h>
25+
#include <memory>
26+
--
27+
2.51.2
28+

0 commit comments

Comments
 (0)