]> OCCT Git - occt.git/commitdiff
Coding - Fix compilation issues on master
authordpasukhi <dpasukhi@opencascade.com>
Tue, 11 Nov 2025 11:23:00 +0000 (11:23 +0000)
committerdpasukhi <dpasukhi@opencascade.com>
Tue, 11 Nov 2025 11:23:00 +0000 (11:23 +0000)
- 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.

src/DataExchange/TKXSBase/Interface/Interface_Category.cxx
src/FoundationClasses/TKernel/Standard/Standard_Macro.hxx
src/FoundationClasses/TKernel/Standard/Standard_StackTrace.cxx

index 27323346b1f6527b9a2665afc86a8c96c5c93aee..2f4dd9adbc88b37bd8463612feb37d10219970f6 100644 (file)
@@ -19,6 +19,8 @@
 #include <TCollection_AsciiString.hxx>
 #include <NCollection_Vector.hxx>
 
+#include <mutex>
+
 namespace
 {
 static int              THE_Interface_Category_init = 0;
index 1ea6922a14c9bce22536e351d2448caed954b4cd..bd1ea182bec9574605e36d8a5a1d4bd5053a6562 100644 (file)
 //! 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
index e0b614452a6248d76d679744a77765302f241c9d..9896a99ccfce91832d966b39affb85b923f64007 100644 (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>