Index: occt-V7_7_2/src/IVtkDraw/IVtkDraw.cxx =================================================================== --- occt-V7_7_2.orig/src/IVtkDraw/IVtkDraw.cxx +++ occt-V7_7_2/src/IVtkDraw/IVtkDraw.cxx @@ -31,10 +31,8 @@ #include #include #include -#include #include #include -#include #include #include @@ -75,6 +73,9 @@ #include #include #include +// Move X11 including files after vtk +#include +#include #ifndef _WIN32 #include #include Index: occt-V7_7_2/src/IVtkDraw/IVtkDraw_Interactor.hxx =================================================================== --- occt-V7_7_2.orig/src/IVtkDraw/IVtkDraw_Interactor.hxx +++ occt-V7_7_2/src/IVtkDraw/IVtkDraw_Interactor.hxx @@ -20,16 +20,6 @@ #include #include -#ifdef _WIN32 -#include -#else -#include -#include -#include -#include -#include -#endif - // prevent disabling some MSVC warning messages by VTK headers #include #include @@ -40,6 +30,17 @@ #include #include +// Include X11 headers after VTK for 9.2 +#ifdef _WIN32 +#include +#else +#include +#include +#include +#include +#include +#endif + class vtkWin32RenderWindowInteractor; typedef vtkSmartPointer PSelector; Index: occt-V7_7_2/src/IVtkDraw/IVtkDraw_Interactor.cxx =================================================================== --- occt-V7_7_2.orig/src/IVtkDraw/IVtkDraw_Interactor.cxx +++ occt-V7_7_2/src/IVtkDraw/IVtkDraw_Interactor.cxx @@ -15,17 +15,6 @@ // prevent disabling some MSVC warning messages by VTK headers #include -#ifdef _WIN32 -#include -#include -#else -#include - -// Preventing naming collisions between -// GLX and VTK versions 9.0 and above -#ifdef AllValues -#undef AllValues -#endif // Resolve name collisions with X11 headers #ifdef Status @@ -36,9 +25,6 @@ #undef Success #endif -#include -#include -#endif #include #include #include @@ -54,6 +40,16 @@ #include #include +// Include X11 headers after VTK for VTK 9.2.5 +#ifdef _WIN32 +#include +#include +#else +#include +#include +#include +#endif + #include #include