geometry icon indicating copy to clipboard operation
geometry copied to clipboard

Legacy macros need replaced

Open davidcsterratt opened this issue 2 years ago • 0 comments

NEWS for 4.2.0 alpha (and R-devel for months before) has

 • The legacy S-compatibility macros DOUBLE_* in R_ext/Constants.h
   (included by R.h) are deprecated.

and these packages use them. The plan is to remove them in R-devel soon after the release of 4.2.0, so please do so in your package before Apr 23.

The standard C99 constants are those used in that header:

#define DOUBLE_DIGITS DBL_MANT_DIG #define DOUBLE_EPS DBL_EPSILON #define DOUBLE_XMAX DBL_MAX #define DOUBLE_XMIN DBL_MIN

defined in <float.h> or for C++, , so please change to those.

Unfortunately there is no portable way to give a deprecation warning in a header so once these are removed your package will fail to install.

davidcsterratt avatar Apr 18 '22 08:04 davidcsterratt