mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-22 12:48:37 +08:00
0028838: Configuration - undefine macros coming from X11 headers in place of collision
The macros Status, Convex, Opposite, FillSolid (coming from X11 headers) are now undefined in place of definition of methods with same name in OCCT headers. The usage of variables with name Status is now avoided. GL_GLEXT_LEGACY is now defined only if not already defined. The macros AddPrinter (coming from WinAPI headers) is now undefined within Message_Messenger class definition having method with the same name. CurrentDirectory macro is now undefined in OSD_Process.hxx.
This commit is contained in:
@@ -35,14 +35,15 @@
|
||||
#include <TopTools_SequenceOfShape.hxx>
|
||||
class ShapeExtend_CompositeSurface;
|
||||
class ShapeAnalysis_TransferParameters;
|
||||
class TopLoc_Location;
|
||||
class TopoDS_Face;
|
||||
class TopoDS_Shape;
|
||||
class ShapeExtend_WireData;
|
||||
class gp_Lin2d;
|
||||
class ShapeFix_WireSegment;
|
||||
class Geom_Surface;
|
||||
|
||||
// resolve name collisions with X11 headers
|
||||
#ifdef Status
|
||||
#undef Status
|
||||
#endif
|
||||
|
||||
class ShapeFix_ComposeShell;
|
||||
DEFINE_STANDARD_HANDLE(ShapeFix_ComposeShell, ShapeFix_Root)
|
||||
|
||||
Reference in New Issue
Block a user