diff --git a/DESCRIPTION b/DESCRIPTION index e59eab9..5fc250a 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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"), diff --git a/MANIFEST.in b/MANIFEST.in index a342207..cfaadc1 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -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 diff --git a/src/poismf-win.def b/src/poismf-win.def new file mode 100644 index 0000000..8163c7f --- /dev/null +++ b/src/poismf-win.def @@ -0,0 +1,3 @@ +LIBRARY poismf.dll +EXPORTS + R_init_poismf diff --git a/src/poismf.h b/src/poismf.h index 21d5858..3241a1a 100644 --- a/src/poismf.h +++ b/src/poismf.h @@ -78,6 +78,7 @@ extern "C" { #include #include #include + #include #define fprintf(f, ...) REprintf(__VA_ARGS__) #define sparse_ix int #undef USE_FLOAT diff --git a/src/rwrapper.c b/src/rwrapper.c index 6c251f4..e1b78df 100644 --- a/src/rwrapper.c +++ b/src/rwrapper.c @@ -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);