# HG changeset patch # User Sebastien Jodogne # Date 1438762073 -7200 # Node ID a13581480b1fa76edeff7c11767c33f371f94691 # Parent 9a1c7293955be952e9bc985731f05cfcc2a71772 fix mingw build diff -r 9a1c7293955b -r a13581480b1f Core/Logging.cpp --- a/Core/Logging.cpp Tue Aug 04 14:58:56 2015 +0200 +++ b/Core/Logging.cpp Wed Aug 05 10:07:53 2015 +0200 @@ -189,14 +189,12 @@ boost::filesystem::path log, link; GetLogPath(log, link, level, directory); - printf("[%s]\n", log.string().c_str()); - #if !defined(_WIN32) && (defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__))) boost::filesystem::remove(link); boost::filesystem::create_symlink(log.filename(), link); #endif - file.reset(new std::ofstream(log.c_str())); + file.reset(new std::ofstream(log.string().c_str())); stream = file.get(); } diff -r 9a1c7293955b -r a13581480b1f Core/Toolbox.cpp --- a/Core/Toolbox.cpp Tue Aug 04 14:58:56 2015 +0200 +++ b/Core/Toolbox.cpp Wed Aug 05 10:07:53 2015 +0200 @@ -437,7 +437,7 @@ { return static_cast(boost::filesystem::file_size(path)); } - catch (boost::filesystem::filesystem_error) + catch (boost::filesystem::filesystem_error&) { throw OrthancException(ErrorCode_InexistentFile); } diff -r 9a1c7293955b -r a13581480b1f Resources/CMake/LibIconvConfiguration.cmake --- a/Resources/CMake/LibIconvConfiguration.cmake Tue Aug 04 14:58:56 2015 +0200 +++ b/Resources/CMake/LibIconvConfiguration.cmake Wed Aug 05 10:07:53 2015 +0200 @@ -35,6 +35,9 @@ unset(EILSEQ) unset(HAVE_WCHAR_T) +# Create an empty "config.h" for libiconv +file(WRITE ${LIBICONV_SOURCES_DIR}/include/config.h "") + include_directories( ${LIBICONV_SOURCES_DIR}/include )