Fixed compilation on OS X

This commit is contained in:
Alessandro Ranellucci 2016-04-11 12:04:54 +02:00
parent 82b07a02fa
commit f66585c250

View File

@ -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 {