Fixed compilation on OS X
This commit is contained in:
parent
82b07a02fa
commit
f66585c250
@ -5,7 +5,13 @@
|
||||
#include <sstream>
|
||||
#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 {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user