git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7857
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
static xbt_dict_t _host_properties = NULL;
# ifdef __APPLE__
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 <crt_externs.h>
-# 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 <crt_externs.h>
+ # define environ (*_NSGetEnviron())
- /* 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()
# endif
void gras_process_init()