From fa88310f9603dccfe95c4973b751fba785c574ca Mon Sep 17 00:00:00 2001 From: Daniel Tipping Date: Fri, 4 Jan 2019 20:14:57 +0000 Subject: [PATCH] Windows: export everything in MagicsSingle/MagicsDouble --- src/MagicsDouble.cc | 10 +++++----- src/MagicsSingle.cc | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/MagicsDouble.cc b/src/MagicsDouble.cc index c8a934180..993aa2f00 100644 --- a/src/MagicsDouble.cc +++ b/src/MagicsDouble.cc @@ -88,31 +88,31 @@ extern "C" #include -void psetr_(char* name, double* value, int length) +MAGICS_EXPORT void psetr_(char* name, double* value, int length) { std::string n(name, length); mag_setr(n.c_str(), *value); } -void pset1r_(char* name, double* data, int* dim, int length) +MAGICS_EXPORT void pset1r_(char* name, double* data, int* dim, int length) { std::string n(name, length); mag_set1r(n.c_str(), data, *dim); } -void pset2r_(char* name, double* data, int *dim, int *dim2, int length) +MAGICS_EXPORT void pset2r_(char* name, double* data, int *dim, int *dim2, int length) { std::string n(name, length); mag_set2r(n.c_str(), data, *dim, *dim2); } -void pset3r_(char* name, double* data, int* dim, int *dim2, int* dim3, int length) +MAGICS_EXPORT void pset3r_(char* name, double* data, int* dim, int *dim2, int* dim3, int length) { std::string n(name, length); mag_set3r(n.c_str(), data, *dim, *dim2, *dim3); } -void penqr_(char* name, double* value, int length) +MAGICS_EXPORT void penqr_(char* name, double* value, int length) { std::string n(name, length); mag_enqr( n.c_str(), value); diff --git a/src/MagicsSingle.cc b/src/MagicsSingle.cc index 87b506924..c2a3b6685 100644 --- a/src/MagicsSingle.cc +++ b/src/MagicsSingle.cc @@ -22,7 +22,7 @@ extern "C" #include -void psetr_(char* name, float* value, int length) +MAGICS_EXPORT void psetr_(char* name, float* value, int length) { std::string n(name, length); double dval = *value; @@ -34,7 +34,7 @@ void psetr_(char* name, float* value, int length) mag_setr(n.c_str(), dval); } -void pset1r_(char* name, float* data, int* dim, int length) +MAGICS_EXPORT void pset1r_(char* name, float* data, int* dim, int length) { std::string n(name, length); double* da = new double [*dim]; @@ -44,7 +44,7 @@ void pset1r_(char* name, float* data, int* dim, int length) delete [] da; } -void pset2r_(char* name, float* data, int *dim, int *dim2, int length) +MAGICS_EXPORT void pset2r_(char* name, float* data, int *dim, int *dim2, int length) { std::string n(name, length); const long no = (*dim)*(*dim2); @@ -55,7 +55,7 @@ void pset2r_(char* name, float* data, int *dim, int *dim2, int length) delete [] da; } -void pset3r_(char* name, float* data, int* dim, int *dim2, int* dim3, int length) +MAGICS_EXPORT void pset3r_(char* name, float* data, int* dim, int *dim2, int* dim3, int length) { std::string n(name, length); const long no = (*dim)*(*dim2)*(*dim3); @@ -66,7 +66,7 @@ void pset3r_(char* name, float* data, int* dim, int *dim2, int* dim3, int length delete [] da; } -void penqr_(const char* name, float* value, int length) +MAGICS_EXPORT void penqr_(const char* name, float* value, int length) { std::string n(name, length); double tmp;