mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03: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:
@@ -195,9 +195,9 @@ static Standard_Integer NbSurfIntervals(const Handle(GeomAdaptor_HSurface)& GAS,
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::Status (const ShapeExtend_Status Status) const
|
||||
Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::Status (const ShapeExtend_Status theStatus) const
|
||||
{
|
||||
return ShapeExtend::DecodeStatus (myStatus, Status);
|
||||
return ShapeExtend::DecodeStatus (myStatus, theStatus);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
@@ -38,8 +38,11 @@ class ShapeAnalysis_Surface;
|
||||
class Geom_Surface;
|
||||
class Geom_Curve;
|
||||
class Geom2d_Curve;
|
||||
class gp_Pnt2d;
|
||||
|
||||
// resolve name collisions with X11 headers
|
||||
#ifdef Status
|
||||
#undef Status
|
||||
#endif
|
||||
|
||||
class ShapeConstruct_ProjectCurveOnSurface;
|
||||
DEFINE_STANDARD_HANDLE(ShapeConstruct_ProjectCurveOnSurface, MMgt_TShared)
|
||||
@@ -99,7 +102,7 @@ public:
|
||||
Standard_EXPORT Standard_Integer& AdjustOverDegenMode();
|
||||
|
||||
//! Returns the status of last Peform
|
||||
Standard_EXPORT Standard_Boolean Status (const ShapeExtend_Status Status) const;
|
||||
Standard_EXPORT Standard_Boolean Status (const ShapeExtend_Status theStatus) const;
|
||||
|
||||
//! Computes the projection of 3d curve onto a surface using the
|
||||
//! specialized algorithm. Returns False if projector fails,
|
||||
|
Reference in New Issue
Block a user