try to fix MAC compilation #40 : probably more elegant 'environ' variable access
This commit is contained in:
parent
a7de623115
commit
d26669d041
|
|
@ -671,11 +671,10 @@ void Exit(){
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
#else
|
#else
|
||||||
#include <spawn.h>
|
#include <spawn.h>
|
||||||
#endif
|
/* According to the Single Unix Specification, environ is not
|
||||||
// Apple may not provide the environ global variable
|
* in any system header, although unistd.h often declares it.
|
||||||
#if defined(__APPLE__) && !defined(environ)
|
*/
|
||||||
#include <crt_externs.h>
|
extern char **environ;
|
||||||
#define environ (*_NSGetEnviron())
|
|
||||||
#endif
|
#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