]> Creatis software - clitk.git/blobdiff - vv/vv.cxx
Ensure compatibility with VTK5
[clitk.git] / vv / vv.cxx
index ef7764d22da298ee8705ffbbdb0a84427e15581f..c0ad00916dbff74f8ea7a3153e2118f2b3e84de9 100644 (file)
--- a/vv/vv.cxx
+++ b/vv/vv.cxx
 #include <QDesktopWidget>
 #include <QDir>
 
+#if VTK_MAJOR_VERSION > 5
 #include <vtkAutoInit.h>
  VTK_MODULE_INIT(vtkInteractionStyle);
  VTK_MODULE_INIT(vtkRenderingOpenGL);
  VTK_MODULE_INIT(vtkRenderingFreeType);
 #define vtkRenderingContext2D_AUTOINIT 1(vtkRenderingContextOpenGL)
+#endif
 
 
 #include "clitkIO.h"