From: cherierm Date: Mon, 22 Oct 2007 09:29:37 +0000 (+0000) Subject: This change exports the gras_procdata pointer and use the Win32 function GetCurrentPr... X-Git-Tag: v3.3~955 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/58ea41e6eaffe2381aac9c717969754792921127 This change exports the gras_procdata pointer and use the Win32 function GetCurrentProcessId() instead the function GetCurrentProcess() to get the process identifier git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4845 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/gras/Virtu/rl_process.c b/src/gras/Virtu/rl_process.c index 4f542afe29..c3a2920760 100644 --- a/src/gras/Virtu/rl_process.c +++ b/src/gras/Virtu/rl_process.c @@ -13,7 +13,7 @@ /* globals */ static gras_procdata_t *_gras_procdata = NULL; -XBT_EXPORT_NO_IMPORT(char const *) _gras_procname = NULL; +XBT_PUBLIC_DATA(char const *) _gras_procname = NULL; void gras_process_init() { _gras_procdata=xbt_new0(gras_procdata_t,1); @@ -31,7 +31,7 @@ const char *xbt_procname(void) { int gras_os_getpid(void) { #ifdef _WIN32 - return (long int) GetCurrentProcess(); + return (long int) GetCurrentProcessId(); #else return (long int) getpid(); #endif