This PR addresses the issues raised in https://github.com/RcppCore/Rcpp/issues/1158. Rather than define STRICT_R_HEADERS in many files I instead added PKG_CPPFLAGS=-DSTRICT_R_HEADERS to the Makevars. As expected this resulted in immediate failure to compile.
All that was required was to include float.h and change instances of DOUBLE_XMIN to DBL_MIN in a few files. The package checks clean for me now and the tests pass.
This PR addresses the issues raised in https://github.com/RcppCore/Rcpp/issues/1158. Rather than define
STRICT_R_HEADERS
in many files I instead addedPKG_CPPFLAGS=-DSTRICT_R_HEADERS
to theMakevars
. As expected this resulted in immediate failure to compile.All that was required was to include
float.h
and change instances ofDOUBLE_XMIN
toDBL_MIN
in a few files. The package checks clean for me now and the tests pass.Fixes #201