From 2649726692a8308ab6ef68806c0ce82f93946834 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Mon, 12 Dec 2016 14:22:24 +0100 Subject: [PATCH] fix DLL_HEADER export --- libsrc/stlgeom/python_stl.cpp | 6 ++++++ libsrc/stlgeom/vsstl.cpp | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/libsrc/stlgeom/python_stl.cpp b/libsrc/stlgeom/python_stl.cpp index 0ab54822..1220f133 100644 --- a/libsrc/stlgeom/python_stl.cpp +++ b/libsrc/stlgeom/python_stl.cpp @@ -4,6 +4,12 @@ #include <../general/ngpython.hpp> #include +#ifdef WIN32 + #define DLL_HEADER __declspec(dllexport) +#else + #define DLL_HEADER +#endif + using namespace netgen; namespace netgen { diff --git a/libsrc/stlgeom/vsstl.cpp b/libsrc/stlgeom/vsstl.cpp index 60011f61..2cb7b9e4 100644 --- a/libsrc/stlgeom/vsstl.cpp +++ b/libsrc/stlgeom/vsstl.cpp @@ -1214,6 +1214,14 @@ void VisualSceneSTLMeshing :: MouseDblClick (int px, int py) #ifdef NG_PYTHON + + +#ifdef WIN32 + #define DLL_HEADER __declspec(dllexport) +#else + #define DLL_HEADER +#endif + #include <../general/ngpython.hpp> DLL_HEADER void ExportSTLVis(py::module &m)