Ticket #1527: boost150support.patch
File boost150support.patch, 3.5 KB (added by , 12 years ago) |
---|
-
build/premake/extern_libs4.lua
216 216 end 217 217 -- These are only needed for boost <= 1.43 218 218 add_default_links({ 219 android_names = { "boost_ system-gcc-mt" },220 unix_names = { "boost_ system-mt" },221 bsd_names = { "boost_ system" },219 android_names = { "boost_filesystem-gcc-mt", "boost_system-gcc-mt" }, 220 unix_names = { "boost_filesystem-mt", "boost_system-mt" }, 221 bsd_names = { "boost_filesystem", "boost_system" }, 222 222 }) 223 223 end, 224 224 link_settings = function() -
source/graphics/TextureManager.cpp
425 425 CTextureConverter::SettingsFile* f = GetSettingsFile(settingsPath); 426 426 if (f) 427 427 files.push_back(f); 428 p = p / *it;428 p = p / GetWstringFromWpath(*it); 429 429 } 430 return m_TextureConverter.ComputeSettings( srcPath.leaf(), files);430 return m_TextureConverter.ComputeSettings(GetWstringFromWpath(srcPath.leaf()), files); 431 431 } 432 432 433 433 /** -
source/lib/pch/pch_boost.h
25 25 26 26 // the following boost libraries have been included in TR1 and are 27 27 // thus deemed usable: 28 #define BOOST_FILESYSTEM_VERSION 2 28 #if BOOST_VERSION >= 104400 29 // Filesystem v3 is included since Boost 1.44 30 // v2 is deprecated since 1.46 and removed entirely in 1.50 31 # define BOOST_FILESYSTEM_VERSION 3 32 #else 33 # define BOOST_FILESYSTEM_VERSION 2 34 #endif 29 35 #include <boost/filesystem.hpp> 30 36 namespace fs = boost::filesystem; 37 31 38 #include <boost/shared_ptr.hpp> 32 39 33 40 // (these ones are used more rarely, so we don't enable them in minimal configurations) -
source/ps/Filesystem.cpp
95 95 return INFO::OK; 96 96 } 97 97 98 std::wstring GetWstringFromWpath(const fs::wpath& path) 99 { 100 #if BOOST_FILESYSTEM_VERSION == 3 101 return path.wstring(); 102 #else 103 return path.string(); 104 #endif 105 } 98 106 107 99 108 CVFSFile::CVFSFile() 100 109 : m_BufferSize(0) 101 110 { -
source/ps/Filesystem.h
54 54 **/ 55 55 extern Status ReloadChangedFiles(); 56 56 57 /** 58 * Helper function to handle differences between Boost Filesystem v2 and v3 59 * There is no implicit conversion from wpath to std::wstring in v3 60 */ 61 std::wstring GetWstringFromWpath(const fs::wpath& path); 62 57 63 ERROR_GROUP(CVFSFile); 58 64 ERROR_TYPE(CVFSFile, LoadFailed); 59 65 ERROR_TYPE(CVFSFile, AlreadyLoaded); -
source/simulation2/components/ICmpAIManager.cpp
53 53 fs::wpath components = pathname.string(); 54 54 fs::wpath::iterator it = components.begin(); 55 55 std::advance(it, 2); 56 std::wstring dirname = *it;56 std::wstring dirname = GetWstringFromWpath(*it); 57 57 58 58 CScriptValRooted ai; 59 59 self->m_ScriptInterface.Eval("({})", ai);