35 lines
869 B
Diff
35 lines
869 B
Diff
Ref: https://www.mail-archive.com/commit@lists.opensuse.org/msg43991.html
|
|
|
|
From 872e2806f74e922a25e0f9586faa6624883728ca Mon Sep 17 00:00:00 2001
|
|
From: Kevin Ushey <kevinus...@gmail.com>
|
|
Date: Wed, 21 Jul 2021 19:56:34 -0700
|
|
Subject: [PATCH] support compilation with r-devel
|
|
|
|
---
|
|
src/cpp/r/session/RSession.cpp | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/cpp/r/session/RSession.cpp b/src/cpp/r/session/RSession.cpp
|
|
index 0066a61c1b6..6c5f986f6a0 100644
|
|
--- a/src/cpp/r/session/RSession.cpp
|
|
+++ b/src/cpp/r/session/RSession.cpp
|
|
@@ -68,6 +68,9 @@
|
|
|
|
#include <gsl/gsl>
|
|
|
|
+extern "C" {
|
|
+int Rf_countContexts(int, int);
|
|
+}
|
|
#define CTXT_BROWSER 16
|
|
|
|
// get rid of windows TRUE and FALSE definitions
|
|
@@ -493,7 +496,7 @@ bool isSuspendable(const std::string& currentPrompt)
|
|
|
|
return true;
|
|
}
|
|
-
|
|
+
|
|
|
|
bool browserContextActive()
|
|
{
|