[education/rkward/releases/0.8.3] rkward/rbackend: Fix build with R 4.6

Thomas Friedrichsmeier null at kde.org
Fri Apr 17 12:34:33 BST 2026


Git commit 29dceccd333ca2ed55b23b26375d6fa57dbc9758 by Thomas Friedrichsmeier.
Committed on 17/04/2026 at 11:34.
Pushed by tfry into branch 'releases/0.8.3'.

Fix build with R 4.6

M  +4    -0    rkward/rbackend/rkrapi.h

https://invent.kde.org/education/rkward/-/commit/29dceccd333ca2ed55b23b26375d6fa57dbc9758

diff --git a/rkward/rbackend/rkrapi.h b/rkward/rbackend/rkrapi.h
index 6296f2d60..552d693f7 100644
--- a/rkward/rbackend/rkrapi.h
+++ b/rkward/rbackend/rkrapi.h
@@ -91,6 +91,10 @@ available as a config option.
 
 #include <Rversion.h>
 
+#if (R_VERSION >= R_Version(4, 5, 9))
+#	define ENABLE_LEGACY_NONAPI 1
+#endif
+
 #if defined(Win32) && (R_VERSION >= R_Version(4, 3, 0))
 // We don't use Complex.h ourselves, but it is included from Rinternals.h and comes with a non-standard definition
 // that trips up MSVC. Fortunately, we can disable that via a define.


More information about the rkward-tracker mailing list