Skip to content

Commit ac7dbaa

Browse files
committed
define STRICT_R_HEADERS, but for 12 mon protect definition
1 parent 4a6cb61 commit ac7dbaa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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)