mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 10:09:03 +08:00
Fixed compilation on OS X
This commit is contained in:
parent
82b07a02fa
commit
f66585c250
@ -5,7 +5,13 @@
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <unistd.h> // provides **environ
|
#include <unistd.h> // provides **environ
|
||||||
|
|
||||||
extern char **environ;
|
#ifdef __APPLE__
|
||||||
|
#include <crt_externs.h>
|
||||||
|
#undef environ
|
||||||
|
#define environ (*_NSGetEnviron())
|
||||||
|
#else
|
||||||
|
extern char **environ;
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user