From ad3b2f53008d765149cb9e5e6def45d4366577ba Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Thu, 3 Mar 2011 22:03:01 +0000 Subject: [PATCH] geom2d as dll --- libsrc/geom2d/geom2dpkg.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libsrc/geom2d/geom2dpkg.cpp b/libsrc/geom2d/geom2dpkg.cpp index d079d308..1456c6ac 100644 --- a/libsrc/geom2d/geom2dpkg.cpp +++ b/libsrc/geom2d/geom2dpkg.cpp @@ -58,8 +58,12 @@ namespace netgen } - using namespace netgen; +using namespace netgen; +#ifdef WIN32 +extern "C" __declspec(dllexport) int Ng_geom2d_Init (Tcl_Interp * interp); +#else extern "C" int Ng_geom2d_Init (Tcl_Interp * interp); +#endif int Ng_geom2d_Init (Tcl_Interp * interp) {