mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +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:
@@ -480,18 +480,18 @@ const
|
||||
for ( ;It.More() ; It.Next()) {
|
||||
const TopoDS_Shape& OS = It.OldShape();
|
||||
const TopoDS_Shape& NS = It.NewShape();
|
||||
TNaming_Evolution Status = It.Evolution();
|
||||
TNaming_Evolution aStatus = It.Evolution();
|
||||
|
||||
// Modification_1 24.06.99 (szy)
|
||||
TopoDS_Shape copOS, copNS;
|
||||
if(Status != TNaming_PRIMITIVE)
|
||||
if(aStatus != TNaming_PRIMITIVE)
|
||||
TNaming_CopyShape::CopyTool(OS, Tab->TransientTable(), copOS);
|
||||
else copOS.Nullify();
|
||||
if(Status != TNaming_DELETE )
|
||||
if(aStatus != TNaming_DELETE )
|
||||
TNaming_CopyShape::CopyTool(NS, Tab->TransientTable(), copNS);
|
||||
else copNS.Nullify();
|
||||
|
||||
switch (Status) {
|
||||
switch (aStatus) {
|
||||
case TNaming_PRIMITIVE :
|
||||
{
|
||||
B.Generated(copNS);
|
||||
|
Reference in New Issue
Block a user