Merge branch 'master' into unstable

customizer
Marius Kintel 2014-01-23 21:22:26 -05:00
commit df3137ce13
2 changed files with 11 additions and 4 deletions

View File

@ -3,8 +3,13 @@
std::string PlatformUtils::documentsPath()
{
fs::path docpath(getenv("HOME"));
docpath = docpath / ".local" / "share";
return boosty::stringy(docpath);
const char *home = getenv("HOME");
if (home) {
fs::path docpath(home);
docpath = docpath / ".local" / "share";
return boosty::stringy(docpath);
}
else {
return "";
}
}

View File

@ -40,6 +40,8 @@
#include <boost/foreach.hpp>
#include <boost/assign/std/vector.hpp>
using namespace boost::assign; // bring 'operator+=()' into scope
#include <boost/math/special_functions/fpclassify.hpp>
using boost::math::isinf;
#define F_MINIMUM 0.01