Skip to content

Commit

Permalink
limit exported symbol visibility to avoid conflicts with cmfrec
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cortes committed Aug 24, 2021
1 parent faf99d1 commit 03a73b6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: poismf
Type: Package
Title: Factorization of Sparse Counts Matrices Through Poisson Likelihood
Version: 0.3.1-1
Version: 0.3.1-2
Authors@R: c(
person(given="David", family="Cortes", role=c("aut", "cre", "cph"),
email="david.cortes.rivera@gmail.com"),
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ exclude poismf/*.cpp
exclude poismf/*.h
exclude poismf/*.hpp
exclude src/Makevars
exclude src/poismf-win.def
exclude src/rwrapper.c
exclude DESCRIPTION
exclude NAMESPACE
Expand Down
3 changes: 3 additions & 0 deletions src/poismf-win.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
LIBRARY poismf.dll
EXPORTS
R_init_poismf
1 change: 1 addition & 0 deletions src/poismf.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ extern "C" {
#include <R.h>
#include <R_ext/Rdynload.h>
#include <R_ext/Print.h>
#include <R_ext/Visibility.h>
#define fprintf(f, ...) REprintf(__VA_ARGS__)
#define sparse_ix int
#undef USE_FLOAT
Expand Down
2 changes: 1 addition & 1 deletion src/rwrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ static const R_CallMethodDef callMethods [] = {
{NULL, NULL, 0}
};

void R_init_poismf(DllInfo *info)
void attribute_visible R_init_poismf(DllInfo *info)
{
R_registerRoutines(info, NULL, callMethods, NULL, NULL);
R_useDynamicSymbols(info, TRUE);
Expand Down

0 comments on commit 03a73b6

Please sign in to comment.