Skip to content

Commit cd8b58a

Browse files
committed
Fix tests
1 parent 1c84e03 commit cd8b58a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/testthat/test-register.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ describe("get_call_entries", {
8484
8585
8686
#include \"cpp11/declarations.hpp\"
87+
#include <R_ext/Visibility.h>
8788
8889
// multiple.cpp
8990
int foo();
@@ -116,7 +117,7 @@ static const R_CallMethodDef CallEntries[] = {
116117
};
117118
}
118119
119-
extern \"C\" void R_init_testPkg(DllInfo* dll){
120+
extern \"C\" attribute_visible void R_init_testPkg(DllInfo* dll){
120121
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
121122
R_useDynamicSymbols(dll, FALSE);
122123
R_forceSymbols(dll, TRUE);
@@ -579,6 +580,7 @@ foo <- function() {
579580
580581
581582
#include \"cpp11/declarations.hpp\"
583+
#include <R_ext/Visibility.h>
582584
583585
// single.cpp
584586
int foo();
@@ -595,7 +597,7 @@ static const R_CallMethodDef CallEntries[] = {
595597
};
596598
}
597599
598-
extern \"C\" void R_init_testPkg(DllInfo* dll){
600+
extern \"C\" attribute_visible void R_init_testPkg(DllInfo* dll){
599601
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
600602
R_useDynamicSymbols(dll, FALSE);
601603
R_forceSymbols(dll, TRUE);

0 commit comments

Comments
 (0)