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:
@@ -181,9 +181,6 @@ Standard_Integer OSD_Process::Error()const{
|
||||
#endif
|
||||
#include <windows.h>
|
||||
|
||||
#ifdef SetCurrentDirectory
|
||||
# undef SetCurrentDirectory /* undefine SetCurrentDirectory from <winbase.h> to correctly include <OSD_Process.hxx> */
|
||||
#endif
|
||||
#include <OSD_Process.hxx>
|
||||
|
||||
#include <OSD_Path.hxx>
|
||||
|
@@ -29,6 +29,10 @@ class TCollection_AsciiString;
|
||||
class Quantity_Date;
|
||||
class OSD_Path;
|
||||
|
||||
// undefine SetCurrentDirectory that can be #defined by previous inclusion of windows.h
|
||||
#ifdef SetCurrentDirectory
|
||||
# undef SetCurrentDirectory
|
||||
#endif
|
||||
|
||||
//! A set of system process tools
|
||||
class OSD_Process
|
||||
|
Reference in New Issue
Block a user