Skip to content

Commit

Permalink
Hide internal symbols from shared object
Browse files Browse the repository at this point in the history
  • Loading branch information
stewid committed Oct 17, 2024
1 parent 72bf9de commit 846d909
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makevars.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
PKG_CPPFLAGS = -DR_NO_REMAP -DSTRICT_R_HEADERS
PKG_CFLAGS = @PKG_CFLAGS@
PKG_CFLAGS = @PKG_CFLAGS@ $(C_VISIBILITY)
PKG_LIBS = @PKG_LIBS@
2 changes: 2 additions & 0 deletions src/git2r.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
#include "git2r_tag.h"
#include "git2r_tree.h"
#include <R_ext/Rdynload.h>
#include <R_ext/Visibility.h>

#define CALLDEF(name, n) {#name, (DL_FUNC) &name, n}

Expand Down Expand Up @@ -161,6 +162,7 @@ static const R_CallMethodDef callMethods[] =
* @param info Information about the DLL being loaded
*/
void
attribute_visible
R_init_git2r(DllInfo *info)
{
R_registerRoutines(info, NULL, callMethods, NULL, NULL);
Expand Down

0 comments on commit 846d909

Please sign in to comment.