Commit cc474fbd authored by David Gobbi's avatar David Gobbi

ENH: VTK_TK_EXPORT for tcl "Init", always dllexport under Win32

parent 696de1f2
......@@ -134,4 +134,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define VTK_EXPORT
#endif
// this is exclusively for the tcl Init functions
#if defined(WIN32)
#define VTK_TK_EXPORT __declspec( dllexport )
#else
#define VTK_TK_EXPORT
#endif
#endif
......@@ -353,7 +353,7 @@ static void vtkTkImageViewerWidget_EventProc(ClientData clientData,
//----------------------------------------------------------------------------
// vtkTkImageViewerWidget_Init
// Called upon system startup to create vtkTkImageViewerWidget command.
extern "C" {VTK_EXPORT int Vtktkimageviewerwidget_Init(Tcl_Interp *interp);}
extern "C" {VTK_TK_EXPORT int Vtktkimageviewerwidget_Init(Tcl_Interp *interp);}
int Vtktkimageviewerwidget_Init(Tcl_Interp *interp)
{
if (Tcl_PkgProvide(interp, (char *) "Vtktkimageviewerwidget", (char *) "1.2") != TCL_OK)
......
......@@ -310,7 +310,7 @@ static void vtkTkImageWindowWidget_EventProc(ClientData clientData,
//----------------------------------------------------------------------------
// vtkTkImageWindowWidget_Init
// Called upon system startup to create vtkTkImageWindowWidget command.
extern "C" {VTK_EXPORT int Vtktkimagewindowwidget_Init(Tcl_Interp *interp);}
extern "C" {VTK_TK_EXPORT int Vtktkimagewindowwidget_Init(Tcl_Interp *interp);}
int Vtktkimagewindowwidget_Init(Tcl_Interp *interp)
{
if (Tcl_PkgProvide(interp, (char *) "Vtktkimagewindowwidget", (char *) "1.2") != TCL_OK)
......
......@@ -48,10 +48,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifdef _WIN32
#include "vtkWin32OpenGLRenderWindow.h"
#define VTK_TK_EXPORT __declspec( dllexport )
#else
#include "vtkXOpenGLRenderWindow.h"
#define VTK_TK_EXPORT
#endif
#define VTK_ALL_EVENTS_MASK \
......
......@@ -6,7 +6,7 @@
//----------------------------------------------------------------------------
// Vtkrenderingpythontkwidgets_Init
// Called upon system startup to create the widget commands.
extern "C" {VTK_EXPORT int Vtkrenderingpythontkwidgets_Init(Tcl_Interp *interp);}
extern "C" {VTK_TK_EXPORT int Vtkrenderingpythontkwidgets_Init(Tcl_Interp *interp);}
int vtkTkRenderWidget_Cmd(ClientData clientData, Tcl_Interp *interp,
int argc, char **argv);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment