opnsense-ports/cad/opencascade/files/patch-src_IVtkDraw_IVtkDraw__Interactor.cxx
Franco Fichtner 7fbf495dcc */*: sync with upstream
Taken from: HardenedBSD
2021-07-09 15:07:54 +02:00

16 lines
413 B
C++

--- src/IVtkDraw/IVtkDraw_Interactor.cxx.orig 2020-11-03 14:50:01 UTC
+++ src/IVtkDraw/IVtkDraw_Interactor.cxx
@@ -20,6 +20,13 @@
#include <vtkWin32OpenGLRenderWindow.h>
#else
#include <GL/glx.h>
+
+// Preventing naming collisions between
+// GLX and VTK versions 9.0 and above
+#ifdef AllValues
+#undef AllValues
+#endif
+
#include <vtkXRenderWindowInteractor.h>
#include <vtkXOpenGLRenderWindow.h>
#endif