Skip to content

Commit 0045988

Browse files
author
luke
committed
More Rcpp work-arounds.
git-svn-id: https://svn.r-project.org/R/trunk@89144 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent bd8792c commit 0045988

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/include/Rmath.h0.in

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -540,13 +540,16 @@ double rlogis(double, double);
540540
double dnbeta(double, double, double, double, int);
541541
double pnbeta(double, double, double, double, int, int);
542542
double qnbeta(double, double, double, double, int, int);
543-
#ifdef COMPILING_RCPP
543+
#if defined(COMPILING_RCPP)
544544
# if RCPP_VERSION <= Rcpp_Version(1,1,0)
545-
// Rcpp 1.1.0 relies on this declaration existing
546-
double rnbeta(double, double, double);
545+
// Rcpp 1.1.0 relies on this declaration existing
546+
double rnbeta(double, double, double);
547547
# endif
548-
#endif
549-
548+
#elif defined(RcppCommon_h) || defined(Rcpp_Rmath_h)
549+
// Rcpp revdeps may also need this declaration to exist for now
550+
double rnbeta(double, double, double);
551+
# endif
552+
550553
/* Non-central F Distribution */
551554

552555
double dnf(double, double, double, double, int);

0 commit comments

Comments
 (0)