Fixed compilation on centos
This commit is contained in:
parent
24e0ddf17c
commit
98b35ceda9
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue