From 2365d7b12787079bebea3da822e8ee3e8b3f08db Mon Sep 17 00:00:00 2001 From: navarrop Date: Mon, 14 Jun 2010 14:44:30 +0000 Subject: [PATCH] If it is a win plateform we have to use wenvironment against environment. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7857 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/gras/Virtu/rl_process.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/gras/Virtu/rl_process.c b/src/gras/Virtu/rl_process.c index c53275de5e..e863eb3e7e 100644 --- a/src/gras/Virtu/rl_process.c +++ b/src/gras/Virtu/rl_process.c @@ -19,12 +19,16 @@ XBT_EXPORT_NO_IMPORT(char const *) _gras_procname = NULL; static xbt_dict_t _host_properties = NULL; # ifdef __APPLE__ -/* under darwin, the environment gets added to the process at startup time. So, it's not defined at library link time, forcing us to extra tricks */ -# include -# define environ (*_NSGetEnviron()) + /* under darwin, the environment gets added to the process at startup time. So, it's not defined at library link time, forcing us to extra tricks */ + # include + # define environ (*_NSGetEnviron()) # else - /* the environment, as specified by the opengroup, used to initialize the process properties */ - extern char **environ; + #ifdef WIN32 + /* the environment, as specified by the opengroup, used to initialize the process properties */ + extern char **wenviron; + #else + extern char **environ; + #endif # endif void gras_process_init() -- 2.20.1