Skip to content

Commit 1ffdce4

Browse files
committed
Mark R_init_xml2 as visible
Closes #451 Closes #450
1 parent a394310 commit 1ffdce4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Makevars.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
PKG_CPPFLAGS=-I../inst/include @cflags@ -DUCHAR_TYPE=wchar_t -DU_SHOW_CPLUSPLUS_API=0 -DSTRICT_R_HEADERS -DR_NO_REMAP
2-
PKG_CXXFLAGS=$(C_VISIBILITY)
2+
PKG_CFLAGS=$(C_VISIBILITY)
3+
PKG_CXXFLAGS=$(CXX_VISIBILITY)
34
PKG_LIBS=@libs@

src/init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <Rinternals.h>
22
#include <stdlib.h> // for NULL
33
#include <R_ext/Rdynload.h>
4+
#include <R_ext/Visibility.h>
45

56
/* FIXME:
67
Check these declarations against the C/Fortran source code.
@@ -137,8 +138,7 @@ static const R_CallMethodDef CallEntries[] = {
137138
};
138139

139140
void init_libxml2_library(void);
140-
void R_init_xml2(DllInfo *dll)
141-
{
141+
attribute_visible void R_init_xml2(DllInfo *dll) {
142142
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
143143
R_useDynamicSymbols(dll, FALSE);
144144
init_libxml2_library();

0 commit comments

Comments
 (0)