]> OCCT Git - occt.git/commit
Fix naming conflict between X11 headers and VTK 9.2.2+ CR33164
authorAiden Grossman <agrossman154@yahoo.com>
Mon, 10 Oct 2022 18:25:13 +0000 (11:25 -0700)
committerAiden Grossman <agrossman154@yahoo.com>
Mon, 10 Oct 2022 18:25:13 +0000 (11:25 -0700)
commit7f523af8e8a63ee17d8fc26f107c191cd51dcd44
treeba82033605dc9f0454b5ffaeea26621f0a094613
parent0b4962a7f04caef12d090d087b7196cefde0703c
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.
src/IVtkDraw/IVtkDraw_Interactor.cxx