diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index 200dbb26d..e5356836b 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -73,14 +73,14 @@ #include "Utils_ExceptHandlers.hxx" -#ifndef WIN32 +#if (!defined WIN32 && !defined __EMSCRIPTEN__) #include #include #else #include #endif -#ifndef WIN32 +#if (!defined WIN32 && !defined __EMSCRIPTEN__) #include namespace fs=boost::filesystem; #endif @@ -164,7 +164,7 @@ SMESH_Mesh::SMESH_Mesh(): namespace { -#ifndef WIN32 +#if (!defined WIN32 && !defined __EMSCRIPTEN__) void deleteMeshDS(SMESHDS_Mesh* meshDS) { delete meshDS; @@ -225,7 +225,7 @@ SMESH_Mesh::~SMESH_Mesh() if ( _meshDS ) { // delete _meshDS, in a thread in order not to block closing a study with large meshes -#ifndef WIN32 +#if (!defined WIN32 && !defined __EMSCRIPTEN__) boost::thread aThread(boost::bind( & deleteMeshDS, _meshDS )); #else pthread_t thread;