Fixed compilation on centos

This commit is contained in:
HanzZ 2012-09-01 20:44:19 +02:00
parent 24e0ddf17c
commit 98b35ceda9

View file

@ -235,10 +235,10 @@ class FrotzNetworkPlugin : public NetworkPlugin {
directory_iterator end_itr;
for (directory_iterator itr(p); itr != end_itr; ++itr) {
if (extension(itr->path()) == ".z5") {
#if BOOST_FILESYSTEM_VERSION == 2
games.push_back(itr->path().leaf());
#else
#if BOOST_FILESYSTEM_VERSION == 3
games.push_back(itr->path().filename().string());
#else
games.push_back(itr->path().leaf());
#endif
}
}