Conditionalized some boost::filesystem calls that were too new.
This commit is contained in:
parent
0cb8049c41
commit
f8a623d547
2 changed files with 12 additions and 0 deletions
|
|
@ -109,10 +109,18 @@ public:
|
|||
python::object sys_dict = module_sys.attr("__dict__");
|
||||
|
||||
python::list paths(sys_dict["path"]);
|
||||
#if BOOST_VERSION >= 103700
|
||||
paths.insert(0, file.parent_path().string());
|
||||
#else
|
||||
paths.insert(0, file.branch_path().string());
|
||||
#endif
|
||||
sys_dict["path"] = paths;
|
||||
|
||||
#if BOOST_VERSION >= 103700
|
||||
import(file.stem());
|
||||
#else
|
||||
import(file.string());
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -87,7 +87,11 @@ namespace {
|
|||
// Find command name: its the substring starting right of the
|
||||
// rightmost '/' character in the pager pathname. See manpage for
|
||||
// strrchr.
|
||||
#if BOOST_VERSION >= 103700
|
||||
path basename(pager_path.filename());
|
||||
#else
|
||||
path basename(pager_path.leaf());
|
||||
#endif
|
||||
execlp(pager_path.string().c_str(), basename.string().c_str(),
|
||||
(char *)0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue