Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2016-04-11 13:04:54 +0300
committerAlessandro Ranellucci <aar@cpan.org>2016-04-11 13:04:54 +0300
commitf66585c250edf077739bedf00820dbb7ba465efd (patch)
tree824cf57e2e833cc3c54e53dc8b03227f028454d2 /xs/src/libslic3r/PlaceholderParser.cpp
parent82b07a02fa97d5398a50b59257c14a221c4f76cb (diff)
Fixed compilation on OS X
Diffstat (limited to 'xs/src/libslic3r/PlaceholderParser.cpp')
-rw-r--r--xs/src/libslic3r/PlaceholderParser.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/xs/src/libslic3r/PlaceholderParser.cpp b/xs/src/libslic3r/PlaceholderParser.cpp
index 03aeee37e..cddfa21fa 100644
--- a/xs/src/libslic3r/PlaceholderParser.cpp
+++ b/xs/src/libslic3r/PlaceholderParser.cpp
@@ -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 {