diff --git a/monado-rev b/monado-rev index 4b89eabc..d4f8cc24 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -6bf60e469bb798bf748700cf740cabc82b511344 +3382bcce6420d5f7ad41825c3ef505b1ae1ab0bb diff --git a/patches/monado/0010-Fix-undefined-macro-in-c.patch b/patches/monado/0010-Fix-undefined-macro-in-c.patch new file mode 100644 index 00000000..f07de97b --- /dev/null +++ b/patches/monado/0010-Fix-undefined-macro-in-c.patch @@ -0,0 +1,27 @@ +From 87161ab6d6668b0c02fe6e462ff3cfc9a356aaed Mon Sep 17 00:00:00 2001 +From: no name +Date: Wed, 29 Jul 2026 23:28:06 +0200 +Subject: [PATCH 10/10] Fix undefined macro in c++ + +--- + src/xrt/include/xrt/xrt_compiler.h | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/xrt/include/xrt/xrt_compiler.h b/src/xrt/include/xrt/xrt_compiler.h +index 5c8cdf86e..3e4cb1854 100644 +--- a/src/xrt/include/xrt/xrt_compiler.h ++++ b/src/xrt/include/xrt/xrt_compiler.h +@@ -159,7 +159,9 @@ + * + * @todo Remove this macro when Monado is updated project-wide to C23. + */ +-#if __STDC_VERSION__ >= 202311L ++#if defined(__cpp_decltype) && __cpp_decltype >= 200707L ++#define XRT_TYPEOF(x) decltype(x) ++#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L + #define XRT_TYPEOF(x) typeof(x) + #elif defined(__GNUC__) || defined(__clang__) + #define XRT_TYPEOF(x) __typeof__(x) +-- +2.55.0 +