try to fix MAC compilation #40 : workaround ambiguous 'environ' global variable availability
This commit is contained in:
parent
ab80efd198
commit
a7de623115
|
|
@ -672,6 +672,11 @@ void Exit(){
|
||||||
#else
|
#else
|
||||||
#include <spawn.h>
|
#include <spawn.h>
|
||||||
#endif
|
#endif
|
||||||
|
// Apple may not provide the environ global variable
|
||||||
|
#if defined(__APPLE__) && !defined(environ)
|
||||||
|
#include <crt_externs.h>
|
||||||
|
#define environ (*_NSGetEnviron())
|
||||||
|
#endif
|
||||||
void Radiant_Restart(){
|
void Radiant_Restart(){
|
||||||
ConfirmModified( "Restart Radiant" ); // user can choose to not save, it's ok
|
ConfirmModified( "Restart Radiant" ); // user can choose to not save, it's ok
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user