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:
@@ -160,14 +160,14 @@ static Standard_Integer Getentry (Draw_Interpretor& di, Standard_Integer n, cons
|
||||
//di << 0;
|
||||
return 0;
|
||||
}
|
||||
Standard_Integer Status ;
|
||||
TCollection_AsciiString Name = DNaming::GetEntry(S,ND,Status);
|
||||
if (Status == 0) {
|
||||
Standard_Integer aStatus = 0;
|
||||
TCollection_AsciiString Name = DNaming::GetEntry (S, ND, aStatus);
|
||||
if (aStatus == 0) {
|
||||
di <<"E_NoName";
|
||||
}
|
||||
else {
|
||||
di <<Name.ToCString();
|
||||
if (Status == 2) {
|
||||
if (aStatus == 2) {
|
||||
di <<"Several shapes have the same name\n";
|
||||
}
|
||||
}
|
||||
@@ -422,15 +422,14 @@ static Standard_Integer Getcreationentry (Draw_Interpretor& di, Standard_Integer
|
||||
di <<"E_NoName";
|
||||
return 0;
|
||||
}
|
||||
Standard_Integer Status ;
|
||||
|
||||
TCollection_AsciiString Name = DNaming::GetEntry(S,ND,Status);
|
||||
if (Status == 0) {
|
||||
Standard_Integer aStatus = 0;
|
||||
TCollection_AsciiString Name = DNaming::GetEntry (S, ND, aStatus);
|
||||
if (aStatus == 0) {
|
||||
di <<"E_NoName";
|
||||
}
|
||||
else {
|
||||
di <<Name.ToCString();
|
||||
if (Status == 2) {
|
||||
if (aStatus == 2) {
|
||||
di <<"Several shapes have the same name\n";
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user