]> Creatis software - clitk.git/commitdiff
Ensure compatibility with VTK5
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Mon, 11 Jul 2016 13:12:58 +0000 (15:12 +0200)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Mon, 11 Jul 2016 13:12:58 +0000 (15:12 +0200)
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"