Standard_Macro.hxx conflicts on Windows defines #145
Labels
1. Foundation Classes
Containers, system calls wrappers, smart pointers and other low level of OCCT code
2. Bug
Something isn't working
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?
OCCT/src/Standard/Standard_Macro.hxx
Lines 191 to 232 in 3ec8891
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
The text was updated successfully, but these errors were encountered: