[Dplr-commits] r1054 - pkg/dplR/src
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Thu Feb 16 09:35:59 CET 2017
Author: mvkorpel
Date: 2017-02-16 09:35:59 +0100 (Thu, 16 Feb 2017)
New Revision: 1054
Modified:
pkg/dplR/src/init.c
Log:
The C function R_forceSymbols() is not available in R < 3.0.0
Modified: pkg/dplR/src/init.c
===================================================================
--- pkg/dplR/src/init.c 2017-02-16 08:00:35 UTC (rev 1053)
+++ pkg/dplR/src/init.c 2017-02-16 08:35:59 UTC (rev 1054)
@@ -1,7 +1,9 @@
#include <stdlib.h>
#include <R_ext/Rdynload.h>
#include <R_ext/Visibility.h>
+#include <Rversion.h>
+#include "dplR.h"
#include "registered.h"
#define CALLDEF(name, n) {#name, (DL_FUNC) &name, n}
@@ -23,5 +25,7 @@
void attribute_visible R_init_dplR(DllInfo *dll) {
R_registerRoutines(dll, NULL, R_CallDef, NULL, NULL);
R_useDynamicSymbols(dll, FALSE);
+#ifdef DPLR_RGEQ3
R_forceSymbols(dll, TRUE);
+#endif
}
More information about the Dplr-commits
mailing list