Salome HOME
Back to WIN32
[modules/smesh.git] / src / SMESH / SMESH_ParallelMesh.cxx
index a56658892e6c33658098973389bf67cec72fa35d..cb508d54aebf83c1340062e64c3fe2a5950f2a38 100644 (file)
   #include <windows.h>
 #endif
 
-#ifndef DISABLE_PSMESH
+#ifndef WIN32
 #include <boost/filesystem.hpp>
 namespace fs=boost::filesystem;
 #endif
 
-#ifndef DISABLE_PSMESH
+#ifndef WIN32
 #include <boost/asio.hpp>
 #endif
 
@@ -58,7 +58,7 @@ SMESH_ParallelMesh::SMESH_ParallelMesh(int               theLocalId,
                                                                   theDocument)
 {
   MESSAGE("SMESH_ParallelMesh::SMESH_ParallelMesh(int localId)");
-#ifndef DISABLE_PSMESH
+#ifndef WIN32
   _NbThreads = std::thread::hardware_concurrency();
 #else
   _NbThreads = 0;
@@ -82,7 +82,7 @@ SMESH_ParallelMesh::~SMESH_ParallelMesh()
 //=============================================================================
 void SMESH_ParallelMesh::CreateTmpFolder()
 {
-#ifndef DISABLE_PSMESH
+#ifndef WIN32
   // Temporary folder that will be used by parallel computation
   tmp_folder = fs::temp_directory_path()/fs::unique_path(fs::path("SMESH_%%%%-%%%%"));
   fs::create_directories(tmp_folder);
@@ -96,7 +96,7 @@ void SMESH_ParallelMesh::CreateTmpFolder()
 //=============================================================================
 void SMESH_ParallelMesh::DeleteTmpFolder()
 {
-#ifndef DISABLE_PSMESH
+#ifndef WIN32
     fs::remove_all(tmp_folder);
 #endif
 }