mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-10 09:30:48 +08:00
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:
@@ -19,6 +19,8 @@
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <NCollection_Vector.hxx>
|
||||
|
||||
#include <mutex>
|
||||
|
||||
namespace
|
||||
{
|
||||
static int THE_Interface_Category_init = 0;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#elif defined(_WIN32) && !defined(OCCT_UWP)
|
||||
|
||||
#include <Standard_WarningsDisable.hxx>
|
||||
#include <windows.h>
|
||||
#include <dbghelp.h>
|
||||
#include <Standard_WarningsRestore.hxx>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user