From 1390dc2e7dda30927c6b63723fcb84d83a7b694f Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Thu, 22 Aug 2024 10:55:14 -0700 Subject: [PATCH] Add an alias of STRING_PTR_RO-->STRING_PTR in R<3.5.0 --- src/cli.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cli.h b/src/cli.h index faf7907dd..0bb258e33 100644 --- a/src/cli.h +++ b/src/cli.h @@ -8,6 +8,10 @@ #include #include +#if R_VERSION < R_Version(3, 5, 0) +# define STRING_PTR_RO(x) STRING_PTR(x) +#endif + SEXP clic_diff_chr(SEXP a, SEXP b, SEXP max); SEXP clic_getppid(void);