Advertisement
le_grand_fuzzy

arch - fuego boost fix

Jan 14th, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.42 KB | None | 0 0
  1. --- trunk/gtpengine/GtpEngine.cpp   2012/08/26 17:53:23 1602
  2. +++ trunk/gtpengine/GtpEngine.cpp   2012/08/26 17:54:42 1603
  3. @@ -349,7 +349,11 @@
  4.      {
  5.          cerr << "GtpEngine: sleep " << seconds << '\n';
  6.          xtime time;
  7. -        xtime_get(&time, boost::TIME_UTC);
  8. +        #if BOOST_VERSION >= 105000
  9. +            xtime_get(&time, boost::TIME_UTC_);
  10. +        #else
  11. +            xtime_get(&time, boost::TIME_UTC);
  12. +        #endif
  13.          time.sec += seconds;
  14.          thread::sleep(time);
  15.          cerr << "GtpEngine: sleep done\n";
  16.  
  17. --- trunk/go/GoGtpEngine.cpp    2012/08/26 17:53:23 1602
  18. +++ trunk/go/GoGtpEngine.cpp    2012/08/26 17:54:42 1603
  19. @@ -1623,7 +1623,11 @@
  20.      // Call GoPlayer::Ponder() after 0.2 seconds delay to avoid calls in very
  21.      // short intervals between received commands
  22.      boost::xtime time;
  23. -    boost::xtime_get(&time, boost::TIME_UTC);
  24. +    #if BOOST_VERSION >= 105000
  25. +        boost::xtime_get(&time, boost::TIME_UTC_);
  26. +    #else
  27. +         boost::xtime_get(&time, boost::TIME_UTC);
  28. +    #endif
  29.      bool aborted = false;
  30.      for (int i = 0; i < 200; ++i)
  31.      {
  32. --- trunk/go/GoGtpEngine.cpp    (revision 1494)
  33. +++ trunk/go/GoGtpEngine.cpp    (working copy)
  34. @@ -378,7 +378,7 @@
  35.      CheckMaxClearBoard();
  36.      if (! m_sentinelFile.empty() && exists(m_sentinelFile))
  37.          throw GtpFailure() << "Detected sentinel file '"
  38. -                           << m_sentinelFile.native_file_string() << "'";
  39. +                           << m_sentinelFile.string() << "'";
  40.      if (Board().MoveNumber() > 0)
  41.          GameFinished();
  42.      Init(Board().Size());
  43. --- trunk/fuegomain/FuegoMainUtil.cpp   (revision 1494)
  44. +++ trunk/fuegomain/FuegoMainUtil.cpp   (working copy)
  45. @@ -22,7 +22,7 @@
  46.  {
  47.      path normalizedFile = file;
  48.      normalizedFile.normalize();
  49. -    string nativeFile = normalizedFile.native_file_string();
  50. +    string nativeFile = normalizedFile.string();
  51.      SgDebug() << "Loading opening book from '" << nativeFile << "'... ";
  52.      ifstream in(nativeFile.c_str());
  53.      if (! in)
  54. --- trunk/fuegomain/FuegoMain.cpp   (revision 1494)
  55. +++ trunk/fuegomain/FuegoMain.cpp   (working copy)
  56. @@ -62,7 +62,8 @@
  57.  {
  58.      if (programPath == 0)
  59.          return "";
  60. -    return path(programPath, boost::filesystem::native).branch_path();
  61. +    //return path(programPath, boost::filesystem::native).branch_path();
  62. +    return path(programPath);
  63.  }
  64.  
  65.  void Help(po::options_description& desc, ostream& out)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement