Skip to content

Commit

Permalink
COMMON: Fix compilation with boost filesystem v2
Browse files Browse the repository at this point in the history
  • Loading branch information
clone2727 committed Jan 20, 2013
1 parent b300f49 commit a3287a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/common/filelist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

#include <boost/algorithm/string.hpp>
#include <boost/regex.hpp>
#include <boost/version.hpp>

#include "common/filelist.h"
#include "common/file.h"
Expand All @@ -45,7 +46,9 @@ using boost::to_lower_copy;
using boost::equals;
using boost::iequals;

#if BOOST_FILESYSTEM_VERSION == 3
#if ((((BOOST_VERSION / 100000) == 1) && (((BOOST_VERSION / 100) % 1000) < 44)) || BOOST_FILESYSTEM_VERSION == 2)
#define generic_string() string()
#elif BOOST_FILESYSTEM_VERSION == 3
#define stem() stem().string()
#endif

Expand Down
5 changes: 4 additions & 1 deletion src/common/filepath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <boost/algorithm/string.hpp>
#include <boost/system/config.hpp>
#include <boost/regex.hpp>
#include <boost/version.hpp>

#include "common/filepath.h"
#include "common/util.h"
Expand All @@ -48,7 +49,9 @@ using boost::filesystem::directory_iterator;
using boost::equals;
using boost::iequals;

#if BOOST_FILESYSTEM_VERSION == 3
#if ((((BOOST_VERSION / 100000) == 1) && (((BOOST_VERSION / 100) % 1000) < 44)) || BOOST_FILESYSTEM_VERSION == 2)
#define generic_string() string()
#elif BOOST_FILESYSTEM_VERSION == 3
#define stem() stem().string()
#define extension() extension().string()
#define filename() filename().string()
Expand Down

0 comments on commit a3287a5

Please sign in to comment.