violetland-0.4.3-boost150.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --- a/CMakeLists.txt 2012-11-05 15:19:11.501044743 +0100
  2. +++ b/CMakeLists.txt 2012-11-05 15:19:25.415250207 +0100
  3. @@ -8,7 +8,6 @@
  4. find_package(SDL_mixer REQUIRED)
  5. find_package(OpenGL REQUIRED)
  6. find_package(Boost COMPONENTS filesystem system REQUIRED)
  7. -add_definitions(-DBOOST_FILESYSTEM_VERSION=2)
  8. if(${MINGW})
  9. set(INTL_LIBRARY intl)
  10. --- a/src/system/utility/FileUtility.cpp 2012-11-05 21:26:07.865488297 +0100
  11. +++ b/src/system/utility/FileUtility.cpp 2012-11-05 21:30:44.881208230 +0100
  12. @@ -20,7 +20,7 @@
  13. while (dir_it != boost::filesystem::directory_iterator()) {
  14. if (boost::filesystem::is_regular_file(*dir_it))
  15. - files.push_back(dir_it->filename());
  16. + files.push_back(dir_it->path().filename().string());
  17. ++dir_it;
  18. }
  19. return files;
  20. @@ -32,8 +32,8 @@
  21. while (dir_it != boost::filesystem::directory_iterator()) {
  22. if (boost::filesystem::is_directory(*dir_it))
  23. - if (dir_it->path().filename()[0] != '.')
  24. - subDirs.push_back(dir_it->path().filename());
  25. + if (dir_it->path().filename().string()[0] != '.')
  26. + subDirs.push_back(dir_it->path().filename().string());
  27. ++dir_it;
  28. }
  29. return subDirs;
  30. @@ -45,7 +45,7 @@
  31. while (dir_it != boost::filesystem::directory_iterator()) {
  32. if (boost::filesystem::is_directory(*dir_it))
  33. - if (dir_it->path().filename()[0] != '.')
  34. + if (dir_it->path().filename().string()[0] != '.')
  35. ++count;
  36. ++dir_it;
  37. }