Update Monado
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
6bf60e469bb798bf748700cf740cabc82b511344
|
||||
3382bcce6420d5f7ad41825c3ef505b1ae1ab0bb
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
From 87161ab6d6668b0c02fe6e462ff3cfc9a356aaed Mon Sep 17 00:00:00 2001
|
||||
From: no name <git-am@invalid>
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user