fix DLL_HEADER export

This commit is contained in:
Christopher Lackner 2016-12-12 14:22:24 +01:00
parent a5e411d008
commit 2649726692
2 changed files with 14 additions and 0 deletions

View File

@ -4,6 +4,12 @@
#include <../general/ngpython.hpp> #include <../general/ngpython.hpp>
#include <stlgeom.hpp> #include <stlgeom.hpp>
#ifdef WIN32
#define DLL_HEADER __declspec(dllexport)
#else
#define DLL_HEADER
#endif
using namespace netgen; using namespace netgen;
namespace netgen namespace netgen
{ {

View File

@ -1214,6 +1214,14 @@ void VisualSceneSTLMeshing :: MouseDblClick (int px, int py)
#ifdef NG_PYTHON #ifdef NG_PYTHON
#ifdef WIN32
#define DLL_HEADER __declspec(dllexport)
#else
#define DLL_HEADER
#endif
#include <../general/ngpython.hpp> #include <../general/ngpython.hpp>
DLL_HEADER void ExportSTLVis(py::module &m) DLL_HEADER void ExportSTLVis(py::module &m)