1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

Compare commits

...

1 Commits

Author SHA1 Message Date
Aiden Grossman
7f523af8e8 Fix naming conflict between X11 headers and VTK 9.2.2+
Currently, the GLX headers include the X11 headers which use a
preprocessor define to make Status an int. However, VTK has a class
called Status, and this define replaces this class name with int which
results in compilation errors. This patch undefs Status and Success,
which are both defined in the X11 headers if they exist so that there
are no conflicts within the VTK headers for newer versions.
2022-10-10 11:25:13 -07:00

View File

@@ -27,6 +27,16 @@
#undef AllValues
#endif
// Prevent naming collisions between X11
// and VTK versions 9.2.0 and above.
// X11 is included through glx
#ifdef Status
#undef Status
#endif
#ifdef Success
#undef Success
#endif
#include <vtkXRenderWindowInteractor.h>
#include <vtkXOpenGLRenderWindow.h>
#endif