mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-20 13:17:54 -06:00
Fixed compilation on OS X
This commit is contained in:
parent
82b07a02fa
commit
f66585c250
1 changed files with 7 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue