Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mgiza.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mgizapp/src')
-rw-r--r--mgizapp/src/CMakeLists.txt8
-rw-r--r--mgizapp/src/HMMTables.cpp4
2 files changed, 9 insertions, 3 deletions
diff --git a/mgizapp/src/CMakeLists.txt b/mgizapp/src/CMakeLists.txt
index beb8746..c3941a0 100644
--- a/mgizapp/src/CMakeLists.txt
+++ b/mgizapp/src/CMakeLists.txt
@@ -68,7 +68,13 @@ INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR} )
IF (WIN32)
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/w32 )
LINK_DIRECTORIES ( ${PROJECT_SOURCE_DIR}/w32 )
- SET(CMAKE_THREAD_LIBS_INIT pthread)
+ IF( USE_64_BIT )
+ SET(CMAKE_THREAD_LIBS_INIT pthread64)
+ ELSE( USE_64_BIT )
+ SET(CMAKE_THREAD_LIBS_INIT pthread)
+ ENDIF( )
+
+
ENDIF()
INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/src/ )
LINK_DIRECTORIES ( ${LIBRARY_OUTPUT_PATH} )
diff --git a/mgizapp/src/HMMTables.cpp b/mgizapp/src/HMMTables.cpp
index 0a7175c..c3ec741 100644
--- a/mgizapp/src/HMMTables.cpp
+++ b/mgizapp/src/HMMTables.cpp
@@ -580,12 +580,12 @@ template<class CLS, class MAPPERCLASSTOSTRING> HMMTables<CLS,
init_beta.begin(); i!=init_beta.end(); i++) {
i->second.second->unlock();
}
-#endif
+
delete lock;
delete alphalock;
delete betalock;
-#if WIN32
+
for (typename hash_map<int,hmmentry_type>::iterator i=
init_alpha.begin(); i!=init_alpha.end(); i++) {
delete i->second.second;