From a528edd5bb83d660bc790123c15d5284b8231ab6 Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Wed, 14 Dec 2016 16:56:47 +0100 Subject: [PATCH] Use STRICT_R_HEADERS in Rcpp.h --- inst/include/Rcpp.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/inst/include/Rcpp.h b/inst/include/Rcpp.h index 64be50266..2d75a91cf 100644 --- a/inst/include/Rcpp.h +++ b/inst/include/Rcpp.h @@ -23,6 +23,11 @@ #ifndef Rcpp_hpp #define Rcpp_hpp +#ifndef STRICT_R_HEADERS +#define STRICT_R_HEADERS +#define RCPP_TEMP_STRICT_R_HEADERS +#endif + /* it is important that this comes first */ #include @@ -84,4 +89,10 @@ #include #include + +#ifdef RCPP_TEMP_STRICT_R_HEADERS +#undef STRICT_R_HEADERS +#undef RCPP_TEMP_STRICT_R_HEADERS +#endif + #endif