Commit a9b4b3f0 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

BUG: Fix logic

parent 9aaac6a9
...@@ -39,7 +39,7 @@ PURPOSE. See the above copyright notice for more information. ...@@ -39,7 +39,7 @@ PURPOSE. See the above copyright notice for more information.
#include <sys/stat.h> #include <sys/stat.h>
#endif #endif
#ifndef VTK_USE_TK #ifdef VTK_USE_TK
# include "vtkTk.h" # include "vtkTk.h"
#else #else
# include "vtkTcl.h" # include "vtkTcl.h"
...@@ -141,7 +141,7 @@ main(int argc, char **argv) ...@@ -141,7 +141,7 @@ main(int argc, char **argv)
vtkstd::string av0 = vtksys::SystemTools::CollapseFullPath(argv[0]); vtkstd::string av0 = vtksys::SystemTools::CollapseFullPath(argv[0]);
Tcl_FindExecutable(av0.c_str()); Tcl_FindExecutable(av0.c_str());
#ifndef VTK_USE_TK #ifdef VTK_USE_TK
Tk_Main(argc, argv, Tcl_AppInit); Tk_Main(argc, argv, Tcl_AppInit);
#else #else
Tcl_Main(argc, argv, Tcl_AppInit); Tcl_Main(argc, argv, Tcl_AppInit);
...@@ -382,7 +382,7 @@ int Tcl_AppInit(Tcl_Interp *interp) ...@@ -382,7 +382,7 @@ int Tcl_AppInit(Tcl_Interp *interp)
return TCL_ERROR; return TCL_ERROR;
} }
#ifndef VTK_USE_TK #ifdef VTK_USE_TK
if (Tk_Init(interp) == TCL_ERROR) if (Tk_Init(interp) == TCL_ERROR)
{ {
return TCL_ERROR; return TCL_ERROR;
......
Supports Markdown
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