Skip to content

Commit 3924240

Browse files
authored
Merge pull request #900 from RcppCore/feature/strict_headers
Feature/strict headers
2 parents 4a6cb61 + 5177165 commit 3924240

File tree

4 files changed

+26
-3
lines changed

4 files changed

+26
-3
lines changed

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
2018-09-17 Dirk Eddelbuettel <[email protected]>
22

3+
* inst/include/Rcpp/r/headers.h: Define STRICT_R_HEADERS, but until
4+
September 2019 protect by defining RCPP_NO_STRICT_HEADERS
5+
36
* .travis.yml (env): Switch to rcpp/ci for ci use
47

58
2018-09-15 Dirk Eddelbuettel <[email protected]>

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: Rcpp
22
Title: Seamless R and C++ Integration
3-
Version: 0.12.18.2
4-
Date: 2018-08-27
3+
Version: 0.12.18.3
4+
Date: 2018-09-17
55
Author: Dirk Eddelbuettel, Romain Francois, JJ Allaire, Kevin Ushey, Qiang Kou,
66
Nathan Russell, Douglas Bates and John Chambers
77
Maintainer: Dirk Eddelbuettel <[email protected]>

inst/NEWS.Rd

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
\itemize{
88
\item Changes in Rcpp API:
99
\itemize{
10-
TBD
10+
\item \code{STRICT_R_HEADERS} will be defined twelve months from
11+
now; until then we protect it via \code{RCPP_NO_STRICT_HEADERS}
12+
which can then be used to avoid the definition; downstream
13+
maintainers are encouraged to update their packages as needed
1114
}
1215
\item Changes in Rcpp Modules:
1316
\itemize{
@@ -19,6 +22,12 @@
1922
\item Several vignettes now use the \code{collapse} argument to
2023
show output in the corresponding code block.
2124
}
25+
\item Changes in Rcpp Deployment:
26+
\itemize{
27+
\item Dockerfiles for continuous integration, standard deployment
28+
and 'plus sized' deployment are provided along with builds
29+
\item Travis CI now use the \code{rcpp/ci} container for tests
30+
}
2231
}
2332
}
2433

inst/include/Rcpp/r/headers.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@
2525
#define MAXELTSIZE 8192
2626
#define R_NO_REMAP
2727

28+
// until September 2019, define RCPP_NO_STRICT_R_HEADERS for transition
29+
#ifndef RCPP_NO_STRICT_R_HEADERS
30+
# define RCPP_NO_STRICT_R_HEADERS
31+
#endif
32+
// define strict headers for R to not clash on ERROR, MESSGAGE, etc
33+
#ifndef RCPP_NO_STRICT_R_HEADERS
34+
# ifndef STRICT_R_HEADERS
35+
# define STRICT_R_HEADERS
36+
# endif
37+
#endif
38+
2839
// prevent some macro pollution when including R headers
2940
// in particular, on Linux, gcc 'leaks' the 'major',
3041
// 'minor' and 'makedev' macros on Linux; we prevent

0 commit comments

Comments
 (0)