mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +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:
@@ -25,6 +25,10 @@
|
||||
class TCollection_HAsciiString;
|
||||
class StepBasic_ApplicationContext;
|
||||
|
||||
// resolve name collisions with X11 headers
|
||||
#ifdef Status
|
||||
#undef Status
|
||||
#endif
|
||||
|
||||
class StepBasic_ApplicationProtocolDefinition;
|
||||
DEFINE_STANDARD_HANDLE(StepBasic_ApplicationProtocolDefinition, MMgt_TShared)
|
||||
|
@@ -24,6 +24,10 @@
|
||||
class StepBasic_ApprovalStatus;
|
||||
class TCollection_HAsciiString;
|
||||
|
||||
// resolve name collisions with X11 headers
|
||||
#ifdef Status
|
||||
#undef Status
|
||||
#endif
|
||||
|
||||
class StepBasic_Approval;
|
||||
DEFINE_STANDARD_HANDLE(StepBasic_Approval, MMgt_TShared)
|
||||
|
Reference in New Issue
Block a user