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:
@@ -28,25 +28,18 @@
|
||||
#include <stdio.h>
|
||||
|
||||
// exclude modern definitions and system-provided glext.h, should be defined before gl.h inclusion
|
||||
#define GL_GLEXT_LEGACY
|
||||
#define GLX_GLXEXT_LEGACY
|
||||
#ifndef GL_GLEXT_LEGACY
|
||||
#define GL_GLEXT_LEGACY
|
||||
#endif
|
||||
#ifndef GLX_GLXEXT_LEGACY
|
||||
#define GLX_GLXEXT_LEGACY
|
||||
#endif
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
#include <X11/Xatom.h>
|
||||
#include <GL/glx.h>
|
||||
|
||||
// workaround name conflicts with OCCT methods (in class TopoDS_Shape for example)
|
||||
#ifdef Convex
|
||||
#undef Convex
|
||||
#endif
|
||||
#ifdef Status
|
||||
#undef Status
|
||||
#endif
|
||||
#ifdef Opposite
|
||||
#undef Opposite
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif // __INTERFACE_GRAPHIC_HXX
|
||||
|
Reference in New Issue
Block a user