#include <qapplication.h>
#include <qthread.h>
-#ifdef _DEBUG_
-static int MYDEBUG = 0;
-#else
-static int MYDEBUG = 0;
-#endif
-
// asv 21.02.05 : introducing multi-platform approach of thread comparison
// on Unix using pthread_t type for storing ThreadId
// on Win32 using integer type for storing ThreadId
// "...Do not allow your program to rely on the internal structure or size of the pthread_t..."
#ifdef WIN32
- #include <windows.h>
- static DWORD myThread;
+#include <windows.h>
+
+static DWORD myThread;
#else
- #include <qthread.h>
- static pthread_t myThread;
+#include <qthread.h>
+#include <pthread.h>
+
+static pthread_t myThread;
#endif
void SALOME_Event::GetSessionThread(){
aComp = aBuilder->NewComponent(dm->module()->name());
// Set default engine IOR
- aBuilder->DefineComponentInstance(aComp, SalomeApp_Application::defaultEngineIOR());
+ aBuilder->DefineComponentInstance(aComp, SalomeApp_Application::defaultEngineIOR().latin1());
}
}
}
#include <vtkMath.h>
#include <set>
+#include <iterator>
#include <algorithm>
static float FACE_TOLERANCE = 0;
TPTOIDS new_face2faces; // which connected and in one plane
- int count=0;
TPTOIDS::const_iterator aF2FIter = face2face.begin();
for(;aF2FIter!=face2face.end();aF2FIter++){