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:
@@ -32,6 +32,10 @@ class Message_Msg;
|
||||
class TCollection_HAsciiString;
|
||||
class Message_Messenger;
|
||||
|
||||
// resolve name collisions with X11 headers
|
||||
#ifdef Status
|
||||
#undef Status
|
||||
#endif
|
||||
|
||||
class Interface_Check;
|
||||
DEFINE_STANDARD_HANDLE(Interface_Check, MMgt_TShared)
|
||||
|
@@ -36,6 +36,10 @@ class Interface_Check;
|
||||
class Standard_Transient;
|
||||
class Message_Messenger;
|
||||
|
||||
// resolve name collisions with X11 headers
|
||||
#ifdef Status
|
||||
#undef Status
|
||||
#endif
|
||||
|
||||
//! Result of a Check operation (especially from InterfaceModel)
|
||||
class Interface_CheckIterator
|
||||
|
@@ -24,21 +24,22 @@
|
||||
#include <Interface_BitMap.hxx>
|
||||
#include <Interface_InterfaceModel.hxx>
|
||||
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <TCollection_HAsciiString.hxx>
|
||||
#include <TColStd_HArray1OfInteger.hxx>
|
||||
#include <TColStd_HArray1OfListOfInteger.hxx>
|
||||
#include <TColStd_HSequenceOfTransient.hxx>
|
||||
|
||||
class Interface_InterfaceModel;
|
||||
class Standard_DomainError;
|
||||
class Interface_GeneralLib;
|
||||
class Interface_Protocol;
|
||||
class Interface_GTool;
|
||||
class Standard_Transient;
|
||||
class Interface_BitMap;
|
||||
class Interface_EntityIterator;
|
||||
class TCollection_HAsciiString;
|
||||
|
||||
// resolve name collisions with X11 headers
|
||||
#ifdef Status
|
||||
#undef Status
|
||||
#endif
|
||||
|
||||
//! Gives basic data structure for operating and storing
|
||||
//! graph results (usage is normally internal)
|
||||
|
Reference in New Issue
Block a user