Skip to content

Commit 051dc1a

Browse files
author
luke
committed
Try to avoid warnings in R_ext/Callbacks.h and R_ext/PrtUtil.h Rcpp is involved.
git-svn-id: https://svn.r-project.org/R/trunk@89107 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 20c868f commit 051dc1a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/include/R_ext/Callbacks.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929
#define R_FAKE_CALLBACKS_H
3030

3131
// new code should include R_ext/ObjectTable.h directly
32+
#if ! defined(RcppCommon_h) || RCPP_VERSION > Rcpp_Version(1,1,0)
3233
#warning include R_ext/ObjectTable.h for R_ObjectTable declarations
34+
#endif
35+
3336
#include <R_ext/ObjectTable.h>
3437

3538
#endif /* R_FAKE_CALLBACKS_H */

src/include/R_ext/PrtUtil.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#ifndef FAKE_PRTUTIL_H_
2828
#define FAKE_PRTUTIL_H_
2929

30+
#if ! defined(COMPILING_RCPP) || RCPP_VERSION > Rcpp_Version(1,1,0)
3031
#warning non-API header file R_ext/PrtUtil.h is obsolete and will be removed
32+
#endif
3133

3234
#endif /* FAKE_PRTUTIL_H_ */

0 commit comments

Comments
 (0)