Skip to content

Commit 6268a75

Browse files
committed
fix regression breaking JRI in R <4.5.0
1 parent 80a6a80 commit 6268a75

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/jri/src/Rengine.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,12 @@ LibExtern int R_interrupts_pending;
3030
#define EXTPTR_PTR(X) R_ExternalPtrAddr(X)
3131
#endif
3232

33-
#if (R_VERSION >= R_Version(2,5,0))
33+
#if (R_VERSION >= R_Version(4,5,0))
3434
#ifdef ENCLOS
3535
#undef ENCLOS
3636
#endif
3737
#define ENCLOS(X) R_ParentEnv(X)
38-
#endif
3938

40-
#if (R_VERSION >= R_Version(4,5,0))
4139
#ifdef Rf_findVar
4240
#undef Rf_findVar
4341
#endif

0 commit comments

Comments
 (0)