1
0
Fork 0

don't let the mac-fix break linux ;-)

This commit is contained in:
Willi Goesgens 2015-03-23 11:15:46 +01:00
parent 8950175eac
commit 6ec5920057
1 changed files with 7 additions and 2 deletions

View File

@ -29,11 +29,16 @@
#ifdef _WIN32
#include "Basics/win-utils.h"
#else
extern char **environ;
#endif
#include "v8-utils.h"
#ifdef __APPLE__
#include <crt_externs.h>
#define environ (*_NSGetEnviron())
#elif !defined(_MSC_VER)
extern char **environ;
#endif
#endif
static void EnvGetter(v8::Local<v8::String> property,