Skip to content

Commit

Permalink
Define STRICT_R_HEADERS (RcppCore/Rcpp#898).
Browse files Browse the repository at this point in the history
  • Loading branch information
jlmelville committed Jan 19, 2019
1 parent 1d733b6 commit 35b759c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Makevars
@@ -1,5 +1,7 @@
# Turn on C++11 support to get access to long long (guaranteed 64-bit ints)
CXX_STD = CXX11

PKG_CXXFLAGS += -DRCPP_PARALLEL_USE_TBB=1 -DSTRICT_R_HEADERS

# RcppParallel
PKG_LIBS += $(shell ${R_HOME}/bin/Rscript -e "RcppParallel::RcppParallelLibs()")
2 changes: 1 addition & 1 deletion src/Makevars.win
Expand Up @@ -2,6 +2,6 @@
CXX_STD = CXX11

# RcppParallel
PKG_CXXFLAGS += -DRCPP_PARALLEL_USE_TBB=1
PKG_CXXFLAGS += -DRCPP_PARALLEL_USE_TBB=1 -DSTRICT_R_HEADERS
PKG_LIBS += $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" \
-e "RcppParallel::RcppParallelLibs()")

0 comments on commit 35b759c

Please sign in to comment.