From 98b35ceda92c1f27502c6047db07deeab19ce54a Mon Sep 17 00:00:00 2001 From: HanzZ Date: Sat, 1 Sep 2012 20:44:19 +0200 Subject: [PATCH] Fixed compilation on centos --- backends/frotz/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backends/frotz/main.cpp b/backends/frotz/main.cpp index dcd67a17..c626becc 100644 --- a/backends/frotz/main.cpp +++ b/backends/frotz/main.cpp @@ -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 } }