File fix-ffi-stdint.patch of Package taskwarrior
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: OBS Auto Fixer <obs@example.com>
Date: Thu, 25 Sep 2025 23:40:00 +0000
Subject: [PATCH] Ensure stdint types are available globally and include cstdint
---
task-3.1.0/src/tc/ffi.h | 7 +++++++
task-3.1.0/src/libshared/src/JSON.h | 1 +
2 files changed, 8 insertions(+)
diff --git a/task-3.1.0/src/tc/ffi.h b/task-3.1.0/src/tc/ffi.h
index 9d2f4ad..f1b6c3b 100644
--- a/task-3.1.0/src/tc/ffi.h
+++ b/task-3.1.0/src/tc/ffi.h
@@ -27,6 +27,13 @@
#ifndef INCLUDED_TC_FFI
#define INCLUDED_TC_FFI
+// Ensure standard types like intmax_t, uintmax_t, time_t are defined in the global namespace
+// before including taskchampion.h inside the tc::ffi namespace. Otherwise, including C headers
+// within a namespace would localize those typedefs to that namespace, breaking standard headers
+// like <cstdint> that rely on ::intmax_t, etc.
+#include <stdbool.h>
+#include <stdint.h>
+#include <time.h>
// The entire FFI API is embedded in the `tc::ffi` namespace
namespace tc::ffi {
#include <taskchampion.h>
diff --git a/task-3.1.0/src/libshared/src/JSON.h b/task-3.1.0/src/libshared/src/JSON.h
index 6b1c3a9..2a7d4d1 100644
--- a/task-3.1.0/src/libshared/src/JSON.h
+++ b/task-3.1.0/src/libshared/src/JSON.h
@@ -33,6 +33,7 @@
#include <map>
#include <vector>
#include <string>
#include <Pig.h>
+#include <cstdint>
namespace json
{
enum jtype
--
2.46.0