We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7988863 commit 92e3905Copy full SHA for 92e3905
1 file changed
src/rJava.h
@@ -78,6 +78,21 @@
78
79
#include "config.h"
80
81
+/* R 4.0.1 broke EXTPTR_PTR ABI so re-map it to safety at the small expense of speed */
82
+#ifdef EXTPTR_PTR
83
+#undef EXTPTR_PTR
84
+#endif
85
+#define EXTPTR_PTR(X) R_ExternalPtrAddr(X)
86
+/* PROT/TAG are safe so far, but just to make sure ... */
87
+#ifdef EXTPTR_PROT
88
+#undef EXTPTR_PROT
89
90
+#define EXTPTR_PROT(X) R_ExternalPtrProtected(X)
91
+#ifdef EXTPTR_TAG
92
+#undef EXTPTR_TAG
93
94
+#define EXTPTR_TAG(X) R_ExternalPtrTag(X)
95
+
96
#ifdef MEMPROF
97
#include <stdio.h>
98
#include <time.h>
0 commit comments