Changeset 8066 for code/branches/kicklib/src/libraries/core
- Timestamp:
- Mar 12, 2011, 11:54:35 PM (14 years ago)
- Location:
- code/branches/kicklib/src/libraries/core
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib/src/libraries/core/CorePrereqs.h
r7960 r8066 258 258 namespace boost 259 259 { 260 #if (BOOST_VERSION < 104400)260 #if BOOST_VERSION < 104400 261 261 namespace filesystem 262 262 { … … 265 265 typedef basic_path<std::string, path_traits> path; 266 266 } 267 #el se267 #elif BOOST_VERSION < 104600 268 268 namespace filesystem2 269 269 { … … 277 277 using filesystem2::path_traits; 278 278 using filesystem2::path; 279 } 280 #else 281 namespace filesystem3 282 { 283 class path; 284 } 285 namespace filesystem 286 { 287 using filesystem3::path; 279 288 } 280 289 #endif -
code/branches/kicklib/src/libraries/core/GraphicsManager.cc
r7948 r8066 243 243 // Use backslash paths on Windows! file_string() already does that though. 244 244 for (unsigned int i = 0; i < plugins.size(); ++i) 245 #if BOOST_FILESYSTEM_VERSION < 3 245 246 ogreRoot_->loadPlugin((folder / plugins[i]).file_string()); 247 #else 248 ogreRoot_->loadPlugin((folder / plugins[i]).string()); 249 #endif 246 250 } 247 251 -
code/branches/kicklib/src/libraries/core/PathConfig.cc
r8058 r8066 59 59 #if (BOOST_VERSION == 103600) 60 60 # define BOOST_LEAF_FUNCTION filename 61 #elif (BOOST_FILESYSTEM_VERSION < 3) 62 # define BOOST_LEAF_FUNCTION leaf 61 63 #else 62 # define BOOST_LEAF_FUNCTION leaf64 # define BOOST_LEAF_FUNCTION path().filename().string 63 65 #endif 64 66 … … 282 284 // We've found a helper file 283 285 const std::string& library = filename.substr(0, filename.size() - moduleextensionlength); 286 #if BOOST_FILESYSTEM_VERSION < 3 284 287 modulePaths.push_back((modulePath_ / library).file_string()); 288 #else 289 modulePaths.push_back((modulePath_ / library).string()); 290 #endif 285 291 } 286 292 } -
code/branches/kicklib/src/libraries/core/command/ArgumentCompletionFunctions.cc
r7401 r8066 50 50 #if (BOOST_VERSION == 103600) 51 51 # define BOOST_LEAF_FUNCTION filename 52 # define BOOST_DICTIONARY_ENTRY_NAME string 53 #elif (BOOST_FILESYSTEM_VERSION < 3) 54 # define BOOST_LEAF_FUNCTION leaf 55 # define BOOST_DICTIONARY_ENTRY_NAME string 52 56 #else 53 # define BOOST_LEAF_FUNCTION leaf 57 # define BOOST_LEAF_FUNCTION path().filename().string 58 # define BOOST_DICTIONARY_ENTRY_NAME path().string 54 59 #endif 55 60 … … 257 262 { 258 263 if (boost::filesystem::is_directory(*file)) 259 dirlist.push_back(ArgumentCompletionListElement(file-> string() + '/', getLowercase(file->string()) + '/', file->BOOST_LEAF_FUNCTION() + '/'));264 dirlist.push_back(ArgumentCompletionListElement(file->BOOST_DICTIONARY_ENTRY_NAME() + '/', getLowercase(file->BOOST_DICTIONARY_ENTRY_NAME()) + '/', file->BOOST_LEAF_FUNCTION() + '/')); 260 265 else 261 filelist.push_back(ArgumentCompletionListElement(file-> string(), getLowercase(file->string()), file->BOOST_LEAF_FUNCTION()));266 filelist.push_back(ArgumentCompletionListElement(file->BOOST_DICTIONARY_ENTRY_NAME(), getLowercase(file->BOOST_DICTIONARY_ENTRY_NAME()), file->BOOST_LEAF_FUNCTION())); 262 267 ++file; 263 268 }
Note: See TracChangeset
for help on using the changeset viewer.