Skip to content

Commit c5c6bfb

Browse files
committed
always include Rcpp.h before generated shims
1 parent 2d4cacd commit c5c6bfb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/AttributesGen.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,9 @@ namespace attributes {
698698
const SourceFileAttributes& attributes,
699699
bool includePrototype,
700700
const std::string& contextId) {
701-
701+
702+
// always include Rcpp.h in case the user didn't
703+
ostr << "#include <Rcpp.h>" << std::endl;
702704
// process each attribute
703705
for(std::vector<Attribute>::const_iterator
704706
it = attributes.begin(); it != attributes.end(); ++it) {

0 commit comments

Comments
 (0)