Coding - Fix compilation issues on master

- Included <mutex> in Interface_Category.cxx to support thread synchronization.
- Added <windows.h> in Standard_StackTrace.cxx for Windows-specific functionality.
- Removed deprecated macro usage example in Standard_Macro.hxx to clean up the code.
This commit is contained in:
dpasukhi
2025-11-11 11:23:00 +00:00
parent 2962bc34f1
commit 61d69fde9e
3 changed files with 3 additions and 7 deletions

View File

@@ -19,6 +19,8 @@
#include <TCollection_AsciiString.hxx>
#include <NCollection_Vector.hxx>
#include <mutex>
namespace
{
static int THE_Interface_Category_init = 0;

View File

@@ -45,13 +45,6 @@
//! When a deprecated macro is used, a compile-time warning will be issued.
//! Unlike Standard_DEPRECATED which marks functions/classes, this is for deprecating macros
//! themselves.
//!
//! Usage example:
//! @code
//! #define OLD_MACRO(x) \
//! Standard_MACRO_DEPRECATED("Use NEW_MACRO instead") \
//! ((x) * 2)
//! @endcode
#if 0 // Disabled until global renames for 8.0.0 are completed.
#define Standard_MACRO_DEPRECATED(theMsg) Standard_DEPRECATED_WARNING(theMsg)
#else

View File

@@ -35,6 +35,7 @@
#elif defined(_WIN32) && !defined(OCCT_UWP)
#include <Standard_WarningsDisable.hxx>
#include <windows.h>
#include <dbghelp.h>
#include <Standard_WarningsRestore.hxx>