mirror of https://github.com/vitalif/openscad
Merge branch 'master' into unstable
commit
df3137ce13
|
@ -3,8 +3,13 @@
|
||||||
|
|
||||||
std::string PlatformUtils::documentsPath()
|
std::string PlatformUtils::documentsPath()
|
||||||
{
|
{
|
||||||
fs::path docpath(getenv("HOME"));
|
const char *home = getenv("HOME");
|
||||||
docpath = docpath / ".local" / "share";
|
if (home) {
|
||||||
|
fs::path docpath(home);
|
||||||
return boosty::stringy(docpath);
|
docpath = docpath / ".local" / "share";
|
||||||
|
return boosty::stringy(docpath);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,8 @@
|
||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
#include <boost/assign/std/vector.hpp>
|
#include <boost/assign/std/vector.hpp>
|
||||||
using namespace boost::assign; // bring 'operator+=()' into scope
|
using namespace boost::assign; // bring 'operator+=()' into scope
|
||||||
|
|
||||||
|
#include <boost/math/special_functions/fpclassify.hpp>
|
||||||
using boost::math::isinf;
|
using boost::math::isinf;
|
||||||
|
|
||||||
#define F_MINIMUM 0.01
|
#define F_MINIMUM 0.01
|
||||||
|
|
Loading…
Reference in New Issue