diff -r 152ffb1b6463 -r 6b2244bb400b src/filenameparse.cc
|
|
|
50 | 50 | #ifdef HAVE_BOOST_FILESYSTEM |
51 | 51 | #include <boost/filesystem.hpp> |
52 | 52 | |
| 53 | #if BOOST_FILESYSTEM_VERSION < 3 |
53 | 54 | typedef boost::filesystem::basic_path<std::string, boost::filesystem::path_traits> basic_path; |
| 55 | #define GETPATHSTRING(x) x |
| 56 | #else |
| 57 | typedef boost::filesystem::path basic_path; |
| 58 | #define GETPATHSTRING(x) (x).string() |
| 59 | #endif |
54 | 60 | #endif |
55 | 61 | |
56 | 62 | |
… |
… |
|
95 | 101 | { |
96 | 102 | #ifdef HAVE_BOOST_FILESYSTEM |
97 | 103 | const basic_path path(aFilename); |
98 | | return path.leaf(); |
| 104 | return GETPATHSTRING(path.leaf()); |
99 | 105 | #else |
100 | 106 | const std::string::size_type separator = aFilename.rfind(PATH_SEPARATOR); |
101 | 107 | return |
… |
… |
|
179 | 185 | } |
180 | 186 | else |
181 | 187 | { |
182 | | directories.push_back(*p); |
| 188 | directories.push_back(GETPATHSTRING(*p)); |
183 | 189 | } |
184 | 190 | } |
185 | 191 | basic_path result; |