Skip to content

Commit

Permalink
Do not define VECTOR_PTR_RO on R >= 4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
yutannihilation committed Jun 26, 2024
1 parent 920903d commit 7f1938c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vctrs-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ enum vctrs_dbl dbl_classify(double x);
# define DATAPTR_RO(x) ((const void*) STRING_PTR(x))
#endif

#define VECTOR_PTR_RO(x) ((const SEXP*) DATAPTR_RO(x))
#if (R_VERSION < R_Version(4, 5, 0))
# define VECTOR_PTR_RO(x) ((const SEXP*) DATAPTR_RO(x))
#endif

// Likely supplied in R 4.4.0
// https://github.com/wch/r-source/commit/38403c9c347dd5426da6009573b087188ec6be04
Expand Down

0 comments on commit 7f1938c

Please sign in to comment.