The most recent r-devel builds now set STRICT_R_HEADERS on by default, which implies that these APIs are no longer available:
https://github.com/wch/r-source/blob/af085e9ea6c901381101afa8e3a8275a2ecdf95d/src/include/R_ext/RS.h#L52-L59
These are currently reported on CRAN under the "Strict" checks, as per https://www.stats.ox.ac.uk/pub/bdr/Strict/digest.out, but recent NEWS entries suggest this will likely be the default in the next release.
Fortunately, the fixes should be straightforward, and I can prepare a PR.