OCCT
OCCT copied to clipboard
Standard_Macro.hxx conflicts on Windows defines
Category
Foundation Classes
Severity
Major
Description
windows.h and #defines in Standard_Macro.hxx
Report: https://dev.opencascade.org/content/windowsh-and-defines-standardmacrohxx
We ran into a compiler error due to a conflict with Open CASCADE headers and another 3rd party component's headers. Specifically the following code in Standard_Macro.hxx caused issues in the other library until I commented these lines out. Can this be moved out of a Standard header in a future release?
https://github.com/Open-Cascade-SAS/OCCT/blob/3ec889191670bb4b8901efba2af62e060e23d722/src/Standard/Standard_Macro.hxx#L191-L232
Expected Behavior
Standard_Macro.hxx Have no conflict definition for external usage.
Actual Behavior
Standard_Macro.hxx had windows macro redefitions
Sample Code or DRAW Tcl Script
None
Operating System
Windows
Compiler
MSVC
Compiler Version
No response
Bitness
64-bit
OCCT Version
7.8
Precise OCCT Version or Branch
No response
Environment
No response
Additional Files
https://dev.opencascade.org/content/windowsh-and-defines-standardmacrohxx