Is there a compatibility package for ConstPtr
? I don’t want to limit my FFI bindings to >= base-4.18
when without ConstPtr
that boundary would be around >= base-4.9
.
The solution I’ve been using is this CPP override, and it’s both ugly, not properly compatible across versions, and not something I would want to use as a potential “import statement” in a templater.
#if MIN_VERSION_base (4,18,0)
import Foreign.C.ConstPtr
#else
##define ConstPtr Ptr
#endif