- 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.
#include <TCollection_AsciiString.hxx>
#include <NCollection_Vector.hxx>
+#include <mutex>
+
namespace
{
static int THE_Interface_Category_init = 0;
//! 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
#elif defined(_WIN32) && !defined(OCCT_UWP)
#include <Standard_WarningsDisable.hxx>
+ #include <windows.h>
#include <dbghelp.h>
#include <Standard_WarningsRestore.hxx>