fix boost filesystem2 compile

This commit is contained in:
Dane Springmeyer 2012-04-20 17:39:52 -07:00
parent 622ce7e590
commit 27f601d1f0

View file

@ -159,7 +159,7 @@ bool freetype_engine::register_fonts(std::string const& dir, bool recurse)
#if (BOOST_FILESYSTEM_VERSION == 3) #if (BOOST_FILESYSTEM_VERSION == 3)
std::string const& base_name = itr->path().filename().string(); std::string const& base_name = itr->path().filename().string();
#else // v2 #else // v2
std::string const& base_name = itr->filename().string(); std::string const& base_name = itr->filename();
#endif #endif
if (!boost::algorithm::starts_with(base_name,".") && if (!boost::algorithm::starts_with(base_name,".") &&
boost::filesystem::is_regular_file(file_name) && boost::filesystem::is_regular_file(file_name) &&