mirror of https://github.com/vitalif/openscad
Merge branch 'master' into unstable
commit
df3137ce13
|
@ -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 "";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue