Skip to content

Commit

Permalink
Fixed compilation on OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
alranel committed Apr 11, 2016
1 parent 82b07a0 commit f66585c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion xs/src/libslic3r/PlaceholderParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down

0 comments on commit f66585c

Please sign in to comment.